Part Number Hot Search : 
BTA40 SP301 216X7 LM257 9KXXX EDZ24B CA506 74HC245
Product Description
Full Text Search
 

To Download TSC2301IPAGG4 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features applications description functional block diagram tsc2301 slas371d ? september 2002 ? revised august 2004 programmable touch screen controller with stereo audio codec spi? serial interface personal digital assistants touch screen controller cellular phones ? 4-wire touch screen interface mp3 players ? internal detection of screen touch and internet appliances keypad press smartphones ? touch pressure measurement ? ratiometric conversion ? programmable 8-, 10- or 12-bit resolution the tsc2301 is a highly integrated pda analog ? programmable sampling rates up to 125 interface circuit. it contains a complete 12-bit a/d khz resistive touch screen converter (adc) including drivers, touch pressure measurement capability, ? direct battery measurement (0 to 6 v) keypad controller, and 8-bit d/a converter (dac) ? on-chip temperature measurement output for lcd contrast control. the tsc2301 offers ? 4-by-4 keypad interface with programmable resolution of 8, 10, and 12 bits and programmable de-bounce and key sampling rates up to 125 khz to accommodate masking different screen sizes. the tsc2301 interfaces to the ? integrated touch screen processor host controller through a standard spi serial reduces host cpu interrupts and overhead interface. ? internal timing control with programmable the tsc2301 features a high-performance 20-bit, delays and averaging 48-ksps stereo audio codec with highly integrated stereo audio codec analog functionality. the audio portion of the ? 20-bit delta-sigma adc/dac tsc2301 contains microphone input with built-in pre-amp and microphone bias circuit, an auxiliary ? dynamic range: 98 db stereo analog input, a stereo line-level output, a ? sampling rate up to 48 khz differential mono line-level output, and a stereo ? i 2 s serial interface headphone amplifier output. the digital audio data is ? stereo 16- w headphone driver transferred through a standard i 2 s interface. a fully full power-down control programmable pll for generating audio clocks from a wide variety of system clocks is also included. 8-bit current output dac on-chip crystal oscillator the tsc2301 also offers two battery measurement inputs capable of battery voltages up to 6 v, while programmable bass/ midrange/ treble eq operating at a supply voltage of only 2.7 v. it also has effects processing an on-chip temperature sensor capable of reading 6 gpio pins 0.3 c resolution. the tsc2301 is available in 64-lead single 2.7-v to 3.6-v supply tqfp, and 120-ball vfbga packages. 64-pin tqfp package us patent no. 6246394 120-ball microstar junior? bga package please be aware that an important notice concerning availability, standard warranty, and use in critical applications of texas instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. microstar junior is a trademark of texas instruments. spi is a trademark of motorola. production data information is current as of publication date. copyright ? 2002?2004, texas instruments incorporated products conform to specifications per the terms of the texas instruments standard warranty. production processing does not necessarily include testing of all parameters.    
     
tsc2301 slas371d ? september 2002 ? revised august 2004 2 www .ti.com w 30k w 20k +20 to - 40db, 0.5db steps sd adc mute, 0db, 6db, 12db sd dac headphone driver sd dac headphone driver digital audio processing i2s interf ace control interface osc   a vdd vcm agnd rlinein micin llinein hpgnd hpvdd hpr voutr voutl hpl coi coo spiselspidin spiclkspido da v mclk lrclk i2sdin i2sdout bclk penirq +20 to - 40db, 0.5db steps sd adc   +12db to - 35db 0.5db steps x - x+ y - y+ t ouch pannel drivers t emp sensor vba t2 vba t1 aux2 aux1 battery monitor battery monitor adc sar c1 c2 c3 c4 r1 r2 r3 r4 keypad scanner and state control control logic & spi interf ace dac dacout dacset internal 2.5v/ 1.25v reference vrefin mono+ mono - kbirq digital gain 0 to - 63.5db 0.5db steps digital gain 0 to - 63.5db 0.5db steps pol reset vref+ vref - 317w 317w gpio_0gpio_1 gpio_2 gpio_3 gpio_4 gpio_5/clko gpio interf ace dgnd (2) dvdd (2) afil tr afil tl a vdd - 1v micbias andpll
absolute maximum ratings tsc2301 slas371d ? september 2002 ? revised august 2004 package/ordering information product package package operating ordering transport media designator temperature range number quantity tsc2301ipag trays, 160 tqfp-64 pag tsc2301ipagr tape and reel, 1500 tsc2301igqz trays, 250 tsc2301i gqz ?40 c to 85 c tsc2301igqzr tape and reel, 2500 vfbga-120 tsc2301izqz trays, 250 zqz tsc2301izqzr tape and reel, 2500 over operating free-air temperature range unless otherwise noted (1) tsc2301 supply voltage avdd, hpvdd, dvdd 4 v ground voltage differences agnd, dgnd 0.1 v digital input voltage -0.3 v to (dv dd + 0.3 v) analog input voltage -0.3 v to (av dd + 0.3 v) ambient temperature under bias, t a -40 c to 125 c storage temperature, t stg -55 c to 150 c junction temperature, t j 150 c lead temperature 1,6 mm (1/16 inch) from case for 10 seconds 260 c (1) stresses beyond those listed under "absolute maximum ratings" may cause permanent damage to the device. these are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated under "recommended operating conditions" is not implied. exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. 3 www .ti.com
electrical characteristics tsc2301 slas371d ? september 2002 ? revised august 2004 at 25 c, hpv dd = av dd = dv dd = +3.3 v, v ref = external 2.5 v, unless otherwise noted. tsc2301 parameter conditions units min typ max auxilary analog inputs input voltage range 0 +vrefin v input capacitance 25 r f input leakage current 1 a battery monitor input input voltage range 0 6.0 v input capacitance 25 r f input leakage current 1 a temperature measurement temperature range -40 +85 c temperature resolution 0.3 c accuracy 2 c touch screen a/d converter resolution programmable: 8-, 10-,12-bits 12 bits no missing codes 12-bit resolution 10 bits integral linearity 6 lsb offset error 6 lsb tsc2301ipag 6 gain error lsb tsc2301igqz 10 v noise <300 rms audio codec sampling frequency 48 khz audio i/o audio in line, mic inputs 0.15* avdd 0.65* avdd v audio out line outputs 0.15* avdd 0.65* avdd v adc performance measured using audio adc fs = 48 khz signal-to-noise ratio, a-weighted no input 80 88 db total harmonic distortion 1 khz, -0.5 db input -70 -60 db 0.18* full-scale input voltage vrms avdd transition band 0.45 fs 0.55 fs hz stop band 0.55 fs 127 fs hz stop band rejection 70db dac performance measured at line audio dac outputs using fs = 48 khz 0.18* full-scale output voltage vrms avdd signal-to-noise ratio, a-weighted no input 98 db total harmonic distortion 1-khz, 0-db input -100 db frequency response 20 0.45 fs hz transition band 0.45 fs 0.55 fs hz stop band 0.55 fs 3.5 fs hz stop band rejection 65 db dac playback through headphone headphone driver driver 4 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 electrical characteristics (continued) at 25 c, hpv dd = av dd = dv dd = +3.3 v, v ref = external 2.5 v, unless otherwise noted. tsc2301 parameter conditions units min typ max output power per channel r = 32 w 14 mw r = 16 w 27 mw r = 16 w v dd = 3.6v 32 mw signal-to-noise ratio, a-weighted 85 96 db total harmonic distortion r = 32 w 1-khz, 0-db input -83 -70 db r = 16 w 1-khz, -3-db input -77 db d/a converter output current range measured with arng floating 0.75 1.10 ma resolution 8 bits voltage reference tsc2301ipag 2.34 2.49 2.54 voltage range internal 2.5 v v tsc2301igqz 2.34 2.49 2.64 ppm/ reference drift 50 c current drain 20 a digital input / output internal clock frequency 8.8 mhz logic family cmos logic level: v ih i ih = 5 a 0.7 v dd v v il i il = 5 a -0.3 0.3 v dd v v oh i oh = 2 ttl loads 0.8* dvdd v v ol i ol = 2 ttl loads 0.2* dvdd v power supply requirements power supply voltage dv dd , av dd , hpv dd 2.7 3.6 v quiescent current (1) touch screen only 1-khz sar sample rate, external v ref 14 a 20-khz sar sample rate, internal touch screen only 1.7 ma v ref stereo playback only 44.1-khz playback, v dd = 2.7v 10 ma voice record only mono 8-khz record, v dd = 2.7v 5.8 ma power down audio fully powered down .05 a (1) for more details on power consumption, see the audio codec section of the description overview. 5 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 pin assignment (top view) pin description vfbga tqfp i/o name description ball pin a10 1 i vbat1 battery monitor input 1 b9 2 i vbat2 battery monitor input 2 a9 3 i/o vrefin sar reference voltage b8 4 arng dac analog output range set a8 5 o aout analog output current from dac a7 6 o penirq pen interrupt b6 7 i pol spi clock polarity a6 8 i/o gpio_0 general-purpose input/output pin a5 9 i/o gpio_1 general-purpose input/output pin b4 10 i/o gpio_2 general-purpose input/output pin a4 11 i/o gpio_3 general-purpose input/output pin b3 12 i/o gpio_4 general-purpose input/output pin a3 13 i/o gpio_5/clko general-purpose input/output pin/buffered oscillator clock out nc 14 i dvdd digital voltage supply a2 15 i dgnd digital ground 6 www .ti.com dgnd afil tl vrefvref+ vcm micinllinein rlineinc4 c3 c2 c1 r4 r3 r2 afil tr micbias 1 2 3 4 5 6 7 8 9 10 1 1 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 y x+ mono+ mono voutl voutr agnd a vdd hpl hpr hpgnd x y+ hpvdd aux1aux2 tsc2301 vba t1 vba t2 vrefin arng aout pol penirq gpio_0gpio_1 gpio_2 gpio_3 gpio_4 gpio_5/clko dvdd ss 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 kbirqdgnd dvdd i2sdout i2sdin lrclk bclk mclk r1 coocoi da v misomosi sclk reset
tsc2301 slas371d ? september 2002 ? revised august 2004 pin description (continued) vfbga tqfp i/o name description ball pin slave select input (active low). data is not clocked into mosi unless ss is low. b2 16 i ss when ss is high, miso is high impedance. b1 17 i sclk spi clock input c2 18 i mosi spi data input. data is clocked in at sclk rising edge spi data output. data is clocked out at sclk falling edge. high impedance when c1 19 o miso ss is high. d2 20 o dav data available (active low). d1 21 i coi crystal input e2 22 o coo crystal output e1 23 i mclk master clock input for audio codec f2 24 i bclk i 2 s bit clock f1 25 i lrclk i 2 s left/right clock g1 26 i i2sdin i 2 s serial data in g2 27 o i2sdout i 2 s serial data out h1 28 i dvdd digital voltage supply j1 29 i dgnd digital ground j2 30 o kbirq keypad interrupt (active low). indicates a key has been depressed k1 31 i reset device reset (active high) k2 32 o r1 keypad row 1 l2 33 o r2 keypad row 2 k3 34 o r3 keypad row 3 l3 35 o r4 keypad row 4 k4 36 i c1 keypad column 1 l4 37 i c2 keypad column 2 k5 38 i c3 keypad column 3 l5 39 i c4 keypad column 4 l6 40 i llinein left-channel analog input to audio codec l7 41 i rlinein right-channel analog input to audio codec k7 42 i micin analog input from microphone l8 43 o micbias bias voltage output k8 44 o vcm common-mode voltage bypass capacitor l9 45 o afiltr right-channel audio adc antialiasing filter capacitor k9 46 o afiltl left-channel audio adc antialiasing filter capacitor l10 47 i vref+ audio codec positive reference voltage k10 48 i vref- audio codec negative reference voltage k11 49 o mono+ mono differential output j10 50 o mono- mono differential output j11 51 o voutr audio right line output h10 52 o voutl audio left line output h11 53 i agnd analog ground g10 54 i avdd analog supply g11 55 o hpl headphone amplifier left output f10 56 o hpr headphone amplifier right output f11 57 i hpgnd analog ground for headphone amplifier and touch screen circuitry e11 58 i x- x- position input e10 59 i y- y- position input d11 60 i x+ x+ position input 7 www .ti.com
timing diagram timing characteristics (1) (2) tsc2301 slas371d ? september 2002 ? revised august 2004 pin description (continued) vfbga tqfp i/o name description ball pin d10 61 i y+ y+ position input c11 62 i hpvdd analog supply for headphone amplifier and touch screen circuitry b11 63 i aux1 sar auxiliary analog input 1 b10 64 i aux2 sar auxiliary analog input 2 all specifications typical at -40 c to +85 c, +v dd = +2.7 v, pol = 1 parameter symbol min max units sclk period t sck 30 ns enable lead time t lead 15 ns enable lag time t lag 15 ns sequential transfer delay t td 30 ns data setup time t su 10 ns data hold time (inputs) t hi 10 ns data hold time (outputs) t ho 0 ns slave access time t a 15 ns slave dout disable time t dis 15 ns data valid t v 10 ns rise time t r 30 ns fall time t f 30 ns (1) all input signals are specified with t r = t f = 5ns (10% to 90% of v dd ) and timed from a voltage level of (v il + v ih )/2. (2) see timing diagram, above. 8 www .ti.com t t d t a t s c k t l e a d t l a g t w s c k t w s c k t r t f t v t h o t d i s t h i t s u msb out bit . . . 1 lsb out msb in bit . . . 1 lsb in ss sclkmiso mosi
typical characteristics tsc2301 slas371d ? september 2002 ? revised august 2004 at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. change in gain error change in offset error conversion supply current vs vs vs temperature temperature temperature figure 1. figure 2. figure 3. touch screen driver internal 1.25-v reference internal oscillator on-resistance vs frequency vs temperature vs temperature temperature figure 4. figure 5. figure 6. 9 change in error (lsb) 2 1.5 1 0.5 0 0.5 1 50 0 50 100 t emperature (  c) onresistance (ohms) 4 4.5 5 5.5 6 6.5 50 0 50 100 t emperature (  c) www .ti.com 1.193 1.194 1.195 1.196 1.197 1.198 1.199 1.2 1.201 1.202 50 0 50 100 v ref (v) t emperature (  c) 8.4 8.5 8.6 8.7 8.8 8.9 9 9.1 50 0 50 100 osc t emperature (  c) t emperature (  c) internal oscillator frequency 0.5 0.4 0.3 0.2 0.1 0 0.1 0.2 0.3 0.4 0.5 50 0 50 100 change in error (lsb) t emperature (  c) idd (ma) 1.6 1.65 1.7 1.75 1.8 1.85 1.9 1.95 2 50 0 50 100 t emperature (  c) idd (ma) idd (ma)
tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. internal 2.5-v reference dac output current temp2 diode voltage vs vs vs temperature temperature temperature figure 7. figure 8. figure 9. temp1 diode voltage micbias thd of dac (lineout) vs vs vs temperature temperature temperature figure 10. figure 11. figure 12. 10 104.00 103.00 102.00 101.00 100.00 99.00 98.00 97.00 60 40 20 0 20 40 60 80 100 thd (dbm) t emperature (  c) 400 450 500 550 600 650 700 750 50 0 50 100 t emp1 v oltage (mv) t emperature (  c) 2.085 2.09 2.095 2.1 2.105 2.1 1 2.1 15 2.12 2.125 2.13 50 0 50 100 t emperature (c) vmicbias (v) www .ti.com 2.46 2.465 2.47 2.475 2.48 2.485 2.49 2.495 2.5 50 0 50 100 1.225 1.23 1.235 1.24 1.245 1.25 1.255 1.26 1.265 1.27 1.275 v ref (v) t emperature (c) 500 600 700 800 900 60 40 20 0 20 40 60 80 100 t emp2 v oltage (mv) t emperature (  c) t emperature (c) dac output current (ma) 0.9 0.95 1 1.05 1.1 1.15 1.2 50 0 50 100
tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. snr of dac (lineout) thd of adc (linein) snr of adc (linein) vs vs vs temperature temperature temperature figure 13. figure 14. figure 15. thd of dac (hp driver), snr of dac (hp driver) thd of bypass path 32- w load vs vs vs temperature temperature temperature figure 16. figure 17. figure 18. 11 98 98.125 98.25 98.375 98.5 98.625 98.75 98.875 99 60 40 20 0 20 40 60 80 100 snr (db) t emperature (  c) 72.000 71.000 70.000 69.000 68.000 67.000 66.000 65.000 64.000 63.000 62.000 60 40 20 0 20 40 60 80 100 thd (db) t emperature (  c) www .ti.com 83 84 85 86 87 88 89 90 60 40 20 0 20 40 60 80 100 snr (db) t emperature (  c) 103.0 102.0 101.0 100.0 99.0 98.0 60 40 20 0 20 40 60 80 100 thd (db) t emperature (  c) 93 94 95 96 97 98 60 40 20 0 20 40 60 80 100 thd (db) t emperature (  c)
tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. snr of bypass path thd of mono path snr of mono path vs vs vs temperature temperature temperature figure 19. figure 20. figure 21. 1.25-v reference 2.5-v internal reference switch on-resistance vs vs vs supply voltage supply voltage supply voltage figure 22. figure 23. figure 24. 12 v ref (v) vdd (v) 2.483 2.48375 2.4845 2.48525 2.486 2.48675 2.4875 2.5 3 3.5 1.1999 1.2 1.2001 1.2002 1.2003 1.2004 1.2005 2.5 3 3.5 v ref (v) vdd (v) 4.9 4.95 5 5.05 5.1 5.15 5.2 5.25 5.3 5.35 2.5 3 3.5 onresistance (ohms) vdd (v) www .ti.com 96 97 98 99 100 101 102 60 40 20 0 20 40 60 80 100 snr (db) t emperature (  c) 102 101 100 99 98 97 96 95 60 40 20 0 20 40 60 80 100 snr (db) t emperature (  c) 96 97 98 99 100 60 40 20 0 20 40 60 80 100 snr (db) t emperature (  c)
tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. temp2 diode voltage temp1 diode voltage internal oscillator vs vs frequency supply voltage supply voltage vs supply voltage figure 25. figure 26. figure 27. dac maximum current pd supply current inl maximum vs vs vs supply voltage supply voltage supply voltage figure 28. figure 29. figure 30. 13 609 609.2 609.4 609.6 609.8 610 610.2 610.4 610.6 610.8 61 1 2.5 3 3.5 t emp1 v oltage (mv) vdd (v) 720 722 724 726 728 730 2.5 3 3.5 t emp2 v oltage (mv) vdd (v) 8.5 8.6 8.7 8.8 8.9 9 2.5 3 3.5 internal oscillator frequency (mhz) vdd (v) www .ti.com 0 0.075 0.15 0.225 0.3 0.375 0.45 2.5 3 3.5 supply current (ua) vdd (v) 3 3.25 3.5 3.75 4 4.25 4.5 2.5 3 3.5 inl_max (lsb) vdd (v) 1.0836 1.0857 1.0878 1.0899 2.5 3 3.5 dac output current (ma) vdd (v)
tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. inl minimum conversion supply current micbias vs vs vs supply voltage supply voltage supply voltage figure 31. figure 32. figure 33. thd of dac (lineout) snr of dac (lineout) thd of adc (linein) vs vs vs supply voltage supply voltage supply voltage figure 34. figure 35. figure 36. 14 3 2.75 2.5 2.25 2 1.75 1.5 2.5 3 3.5 inl_min (lsb) vdd (v) 77 76 75 74 73 72 71 70 69 68 67 2.5 3 3.5 thd (db) vdd (v) snr (db) vdd (v) 95 96 97 98 99 100 2.5 3 3.5 thd (db) 102 101 100 99 98 97 96 95 2.5 3 3.5 vdd (v) www .ti.com 1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4 2.5 2.5 3 3.5 vmicbias (v) vdd (v) 1 1.25 1.5 1.75 2 2.5 3 3.5 idd_t otal (ma) vdd (v)
tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. snr of adc (linein) thd of dac (hp driver) snr of dac (hp driver) vs vs vs supply voltage supply voltage supply voltage figure 37. figure 38. figure 39. thd of bypass path snr of bypass path thd of mono path vs vs vs supply voltage supply voltage supply voltage figure 40. figure 41. figure 42. 15 92 93 94 95 96 97 98 99 2.5 3 3.5 snr (db) vdd (v) 83 84 85 86 87 88 89 90 2.5 3 3.5 snr (db) vdd (v) www .ti.com 85 84 83 82 81 80 79 78 2.5 3 3.5 thd (db) vdd (v) 96 97 98 99 100 101 102 2.5 3 3.5 snr (db) vdd (v) 103 102 101 100 99 98 2.5 3 3.5 thd (db) vdd (v) 100 99 98 97 96 95 2.5 3 3.5 thd (db) vdd (v)
overview tsc2301 slas371d ? september 2002 ? revised august 2004 typical characteristics (continued) at t a = +25 c, +v dd = +3.3 v, v ref = +2.5 v, f sample = 125 khz, unless otherwise noted. snr of mono path vs supply voltage figure 43. the tsc2301 is an analog interface circuit for human interface devices. a register-based architecture eases integration with microprocessor-based systems through a standard spi bus. all peripheral functions are controlled through the registers and onboard state machines. the tsc2301 consists of the following blocks (refer to the block diagram on p. 2): 1. touch screen interface 2. keypad interface 3. battery monitors 4. auxiliary inputs 5. temperature monitor 6. current output digital-to-analog converter 7. audio codec and signal processing communication to the tsc2301 is via a standard spi serial interface. this interface requires that the slave select signal be driven low to communicate with the tsc2301. data is then shifted into or out of the tsc2301 under control of the host microprocessor, which also provides the serial data clock. control of the tsc2301 and its functions is accomplished by writing to different registers in the tsc2301. a simple command protocol is used to address the 16-bit registers. registers control the operation of the touch screen a/d converter, keypad scanner, and audio codec. the result of measurements made are placed in the tsc2301 memory map and can be read by the host at any time. three signals are available from the tsc2301 to indicate that data is available for the host to read. the dav output indicates that an analog-to-digital conversion has completed and that data is available. the kbirq output indicates that an unmasked key on the keypad has been pressed and de-bounced. the penirq output indicates that a touch has been detected on the touch screen. a typical application of the tsc2301 is shown in figure 44 . 16 www .ti.com 96 97 98 99 100 101 102 2.5 3 3.5 snr (db) vdd (v)
detailed description operation - touch screen tsc2301 slas371d ? september 2002 ? revised august 2004 overview (continued) figure 44. typical circuit configuration a resistive touch screen works by applying a voltage across a resistor network and measuring the change in resistance at a given point on the matrix where a screen is touched by an input stylus, pen, or finger. the change in the resistance ratio marks the location on the touch screen. 17 1 2 3 4 5 6 7 8 9 10 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 5556 57 58 59 60 61 6263 64 mono+ mono - voutr voutl agnd a vdd hplhpr hpgnd x - y - x+ y+ hpvdd aux1aux2 r1 reset kbirq dgnd dvdd i2sdout i2sdin lrclk bclk mclk coo coi da v spi_dout spi_din spi_clk vba t1 vba t2 vrefin dacset dacoutpenirq pol gpio_0gpio_1 gpio_2 gpio_3 gpio_4 gpio_5/clk0 dvdd dgnd ss vref - vref+afil tl afil tr vcm micbias micin auxinr rlinein c4 c3c2 c1 r4 r3 r2 tsc2301 touch screen mono amp v oltage regulator v oltage regulator main battery secondarybattery lcd contrast control keyp ad headphone jack microphone jack rbias a a a a a a a a a a a a a a a a a a a auxilliary inputs d d d d d d d d 1 1 12 13 14 15 16 15 pf rrng 1nf 1nf line outputs line inputs 0 15 13 14 12 1 1 10 1 2 4 3 5 6 7 8 9 d dvdd 1 to 10 m f 0.1 m f 1 m f 1 m f 1 m f 220 m f 220 m f 10 w to 100 w 1 m f 1 m f 1 to 10 m f 0.1 m f 0.1 m f 1 to 10 m f 1 to 10 m f 0.1 m f 1 to 10 m f 0.1 m f 15 pf 1 to 10 m f 0.1 m f 1 m f www .ti.com
the 4-wire touch screen coordinate pair measurement (1) tsc2301 slas371d ? september 2002 ? revised august 2004 detailed description (continued) the tsc2301 supports the resistive 4-wire configuration (see figure 44 ). the circuit determines location in two coordinate pair dimensions, although a third dimension can be added for measuring pressure. a 4-wire touch screen is constructed as shown in figure 45 . it consists of two transparent resistive layers separated by insulating spacers. figure 45. 4-wire touch screen construction the 4-wire touch screen panel works by applying a voltage across the vertical or horizontal resistive network. the adc converts the voltage measured at the point where the panel is touched. a measurement of the y position of the pointing device is made by connecting the x+ input to the adc input, driving y+ to +vdd and y- to gnd using switches internal to the tsc2301, and digitizing the voltage seen at the x+ input. the voltage measured is determined by the voltage divider developed at the point of touch. for this measurement, the horizontal panel resistance in the x+ lead does not affect the conversion, due to the high input impedance of the adc. voltage is then applied to the other axis, and the adc converts the voltage representing the x position on the screen. this provides the x and y coordinates to the associated processor. measuring touch pressure (z) can also be done with the tsc2301. to determine pen or finger touch, the pressure of the touch needs to be determined. generally, it is not necessary to have very high performance for this test, therefore, the 8-bit resolution mode is recommended (however, calculations are shown with the 12-bit resolution mode). there are several different ways of performing this measurement. the tsc2301 supports two methods. the first method requires knowing the x-plate resistance, measurement of the x-position, and two additional cross panel measurements (z2 and z1) of the touch screen (see figure 46 ). using equation 1 calculates the touch resistance: the second method requires knowing both the x-plate and y-plate resistance, measurement of x-position and y-position, and z 1 . using equation 2 also calculates the touch resistance: 18 conductive bar t ransparent conductor (it o) bottom side x+ x y+ y t ransparent conductor (it o) t op side insulating material (glass) it o= indium t in oxide silver ink r t o u c h  r x p l a t e x p o s i t i o n 4 0 9 6  z 2 z 1  1  www .ti.com
(2) a/d converter tsc2301 slas371d ? september 2002 ? revised august 2004 figure 46. pressure measurement when the touch panel is pressed or touched, and the drivers to the panel are turned on, the voltage across the touch panel often overshoots and then slowly settles (decay) down to a stable dc value. this is due to mechanical bouncing, which is caused by vibration of the top layer sheet of the touch panel when the panel is pressed. this settling time must be accounted for, or else the converted value is in error. therefore, a delay must be introduced between the time the driver for a particular measurement is turned on, and the time measurement is made. in some applications, external capacitors may be required across the touch screen for filtering noise picked up by the touch screen, i.e. noise generated by the lcd panel or back-light circuitry. the value of these capacitors provides a low-pass filter to reduce the noise, but causes an additional settling time requirement when the panel is touched. several solutions to this problem are available in the tsc2301. a programmable delay time is available which sets the delay between turning the drivers on and making a conversion. this is referred to as the panel voltage stabilization time, and is used in some of the modes available in the tsc2301. in other modes, the tsc2301 can be commanded to turn on the drivers only without performing a conversion. time can then be allowed before the command is issued to perform a conversion. the tsc2301 touch screen interface can measure position (x,y) and pressure (z). determination of these coordinates is possible under three different modes of the a/d converter: conversion controlled by the tsc2301, initiated by detection of a touch; conversion controlled by the tsc2301, initiated by the host responding to the penirq signal; or conversion completely controlled by the host processor. the analog inputs of the tsc2301 are shown in figure 47 . the analog inputs (x, y, and z touch panel coordinates, battery voltage monitors, chip temperature, and auxiliary inputs) are provided via a multiplexer to the successive approximation register (sar) analog-to-digital converter (adc). the a/d architecture is based on capacitive redistribution architecture, which inherently includes a sample/hold function. a unique configuration of low on-resistance switches allows an unselected adc input channel to provide power and an accompanying pin to provide ground for driving the touch panel. by maintaining a differential input to the converter and a differential reference input architecture, it is possible to negate errors caused by the driver switch on-resistances. 19 r t o u c h   r x p l a t e x p o s i t i o n 4 0 9 6   4 0 9 6 z 1  1   r y p l a t e  1  y p o s i t i o n 4 0 9 6  z 2 p o s i t i o n t o u c h x+x y+y x-position t ouch measure x-position measure z 1 -position x+x z-position t ouch y+y x+x y+y measure z 2 -position www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 the adc is controlled by an adc control register. several modes of operation are possible, depending upon the bits set in the control register. channel selection, scan operation, averaging, resolution, and conversion rate may all be programmed through this register. these modes are outlined in the sections below for each type of analog input. the results of conversions made are stored in the appropriate result register. figure 47. simplified diagram of the touch screen analog input section data format the tsc2301 output data is in straight binary format as shown in figure 48 . this figure shows the ideal output code for the given input voltage and does not include the effects of offset, gain, or noise. figure 48. ideal input voltages and output codes 20 penirq +v c c v r e f temp1 temp0 ref on/off 1.25/2.5 vreference +in in +ref ref converter 2.5 k w 5.0 k w 5.0 k w 7.5 k w battery on battery on gnd in2 in1 v b a t 2 v b a t 1 y y + x x + www .ti.com 0v 1 1 . . . 1 1 1 1 1 . . . 1 1 0 1 1 . . . 1 0 1 0 0 . . . 0 1 0 0 0 . . . 0 0 1 0 0 . . . 0 0 0 1 l s b output code input v oltage - a fs = full - scale v oltage = v r e f 1 lsb = v r e f /4096 fs - 1 lsb
tsc2301 slas371d ? september 2002 ? revised august 2004 reference the tsc2301 has an internal voltage reference that can be set to 1.2 v or 2.5 v, through the reference control register. this reference can also be set to automatically power down between conversions to save power, or remain on to reduce settling time. the internal reference voltage is only used in the single-ended mode for battery monitoring, temperature measurement, and for utilizing the auxiliary inputs. optimal touch screen performance is achieved when using a ratiometric conversion, thus all touch screen measurements are done automatically in the differential mode. an external reference can also be applied to the vrefin pin, and the internal reference can be turned off. variable resolution the tsc2301 provides three different resolutions for the adc: 8, 10, or 12 bits. lower resolutions are often practical for measurements such as touch pressure. performing the conversions at lower resolution reduces the amount of time it takes for the adc to complete its conversion process, which lowers power consumption. conversion clock and conversion time the tsc2301 contains an internal 8-mhz clock, which is used to drive the state machines inside the device that perform the many functions of the part. this clock is divided down to generate the actual adc conversion clock. the division ratio for this clock is set in the adc control register. the ability to change the conversion clock rate allows the user to choose the optimal value for resolution, speed, and power. if the 8-mhz clock is used directly, the adc is limited to 8-bit resolution; using higher resolutions at this speed does not result in accurate conversions. using a 4-mhz conversion clock is suitable for 10-bit resolution; 12-bit resolution requires that the conversion clock run at 1 or 2 mhz. regardless of the conversion clock speed, the internal clock runs nominally at 8 mhz. the conversion time of the tsc2301 is dependent upon several functions. while the conversion clock speed plays an important role in the time it takes for a conversion to complete, a certain number of internal clock cycles is needed for proper sampling of the signal. moreover, additional times, such as the panel voltage stabilization time, can add significantly to the time it takes to perform a conversion. conversion time can vary depending upon the mode in which the tsc2301 is used. throughout this data sheet, internal and conversion clock cycles are used to describe the times that many functions take. in considering the total system design, these times must be taken into account by the user. touch detect the pen interrupt ( penirq) output function is detailed in figure 49 . while in the touch screen monitoring mode, the y- driver is on and connected to gnd, the x+ input is connected through a pullup resistor to v dd , and the penirq output reflects the state of the x+ input. when the panel is touched, the x+ input is pulled to ground through the touch screen and penirq output goes low due to the current path through the panel to gnd, initiating an interrupt to the processor. during the measurement cycles for x- and y-position, the x+ input is disconnected from penirq to eliminate any leakage current from the pullup resistor that might flow through the touch screen, thus causing no errors. 21 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 figure 49. penirq functional block diagram in modes where the tsc2301 needs to detect if the screen is still touched (for example, when doing a penirq-initiated x, y, and z conversion), the tsc2301 must reconnect the drivers so that the 50-k w resistor is connected again. because of the high value of this pullup resistor, any capacitance on the touch screen inputs cause a long delay time, and may prevent the detection from occurring correctly. to prevent this, the tsc2301 has a circuit which allows any screen capacitance to be precharged through a low-resistance connection to vdd, so that the pullup resistor doesn't have to be the only source for the charging current. the time allowed for this precharge, as well as the time needed to sense if the screen is still touched, can be set in the configuration control register. all other drivers (x-,y+, y-) are off during precharging. this does point out, however, the need to use the minimum capacitor values possible on the touch screen inputs. these capacitors may be needed to reduce noise, but too large a value increases the needed precharge and sense times, as well as panel voltage stabilization time. in self-controlled modes where the tsc2301 automatically performs conversions when it detects a pen touch, it is generally not necessary for the host processor to monitor penirq. instead, the host must monitor dav, which goes low when data is available in the appropriate data register, and returns high when all new data has been read back by the host. 22 www .ti.com high except when temp1, temp2 activated internal 50 k  v d d penirq v d d temp1 temp2 temp diode y+ or x+ drivers on, or temp1, temp2 measurements activated y+x+ y on
digital interface tsc2301 communication protocol tsc2301 slas371d ? september 2002 ? revised august 2004 the tsc2301 communicates through a standard spi bus. the spi allows full-duplex, synchronous, serial communication between a host processor (the master) and peripheral devices (slaves). the spi master generates the synchronizing clock and initiates transmissions. the spi slave devices depend on a master to start and synchronize transmissions. a transmission begins when initiated by an spi master. the byte from the spi master begins shifting in on the slave mosi pin under the control of the master serial clock. as the byte shifts in on the mosi pin, a byte shifts out on the miso pin to the master shift register. when the pol pin of the tsc2301 is tied high (pol=1), the idle state of the serial clock for the tsc2301 is low, which corresponds to a clock polarity setting of 0 (typical microprocessor spi control bit cpol = 0). when the pol pin of the tsc2301 is tied low (pol=0), the idle state of the serial clock is high, which corresponds to a clock polarity setting of 1 (typical microprocessor spi control bit cpol = 1). the tsc2301 interface is designed so that with a clock phase bit setting of 1 (typical microprocessor spi control bit cpha = 1), the master begins driving its mosi pin and the slave begins driving its miso pin on the first serial clock edge. the ss pin can remain low between transmissions; however, the tsc2301 only interprets the first 16 bits transmitted after the falling edge of ss as a command word, and the next 16 bits as a data word only if writing to a register. reserved register bits should be written to their default values (see table 4 ). the tsc2301 is entirely controlled by registers. reading and writing these registers is accomplished by the use of a 16-bit command, which is sent prior to the data for that register. the command is constructed as shown in table 2 . the command word begins with an r/w bit, which specifies the direction of data flow on the serial bus. the following 4 bits specify the page of memory this command is directed to, as shown in table 1 . the next six bits specify the register address on that page of memory to which the data is directed. the last five bits are reserved for future use. table 1. page addressing pg3 pg2 pg1 pg0 page addressed 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 reserved 0 1 0 0 reserved 0 1 0 1 reserved 0 1 1 0 reserved 0 1 1 1 reserved 1 0 0 0 reserved 1 0 0 1 reserved 1 0 1 0 reserved 1 0 1 1 reserved 1 1 0 0 reserved 1 1 0 1 reserved 1 1 1 0 reserved 1 1 1 1 reserved to read all the first page of memory, for example, the host processor must send the tsc2301 the command 0x8000 - this specifies a read operation beginning at page 0, address 0. the processor can then start clocking data out of the tsc2301. the tsc2301 automatically increments its address pointer to the end of the page; if the host processor continues clocking data out past the end of a page, the tsc2301 simply sends back the value 0xffff. 23 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 continuous writing is generally not recommended for the control registers, but for the coefficients of bass-boost filter coefficient registers, continuous writing works. writing to these registers consists of the processor writing the command 0x10e0, which specifies a write operation, with pg1 set to 1, and the addr bits set to 07h. this results in the address pointer pointing at the location of the first bass-boost coefficient in memory see table 3 (page 2). see the section on the tsc2301 memory map for details of register locations table 2. tsc2301 command word bit sbbit bit bit bit bit bit bit bit bit bit bit bit bit bit bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 m ls b r/ p p p p ad ad ad ad ad ad x x x x x w* g3 g2 g1 g0 dr dr dr dr dr dr 5 4 3 2 1 0 figure 50 shows an example of a complete data transaction between the host processor and the tsc2301. figure 50. write and read operation of tsc2301 interface, pol = 1 24 www .ti.com
tsc2301 memory map tsc2301 slas371d ? september 2002 ? revised august 2004 the tsc2301 has several 16-bit registers that allow control of the device as well as providing a location for results from the tsc2301 to be stored until read by the host microprocessor. these registers are separated into three pages of memory in the tsc2301: a data page (page 0), a control page (page 1), and an audio control page (page 2). the memory map is shown in table 3 . table 3. tsc2301 memory map page 0: data registers page 1: control registers page 2: audiocontrol registers addr register addr register addr register 00 x 00 adc 00 audio control 01 y 01 key 01 adc volume control 02 z1 02 dacctl 02 dac volume control 03 z2 03 ref 03 analog audio bypass volume control 04 kpdata 04 reset 04 keyclick control 05 bat1 05 config 05 audio power/ crystal oscillator control 06 bat2 06 config2 06 gpio control 07 aux1 07 reserved 07 dac bass-boost filter coefficients 08 aux2 08 reserved 08 dac bass-boost filter coefficients 09 temp1 09 reserved 09 dac bass-boost filter coefficients 0a temp2 0a reserved 0a dac bass-boost filter coefficients 0b dac 0b reserved 0b dac bass-boost filter coefficients 0c reserved 0c reserved 0c dac bass-boost filter coefficients 0d reserved 0d reserved 0d dac bass-boost filter coefficients 0e reserved 0e reserved 0e dac bass-boost filter coefficients 0f reserved 0f reserved 0f dac bass-boost filter coefficients 10 reserved 10 kpmask 10 dac bass-boost filter coefficients 11 reserved 11 reserved 11 dac bass-boost filter coefficients 12 reserved 12 reserved 12 dac bass-boost filter coefficients 13 reserved 13 reserved 13 dac bass-boost filter coefficients 14 reserved 14 reserved 14 dac bass-boost filter coefficients 15 reserved 15 reserved 15 dac bass-boost filter coefficients 16 reserved 16 reserved 16 dac bass-boost filter coefficients 17 reserved 17 reserved 17 dac bass-boost filter coefficients 18 reserved 18 reserved 18 dac bass-boost filter coefficients 19 reserved 19 reserved 19 dac bass-boost filter coefficients 1a reserved 1a reserved 1a dac bass-boost filter coefficients 1b reserved 1b reserved 1b reserved 1c reserved 1c reserved 1c reserved 1d reserved 1d reserved 1d reserved 1e reserved 1e reserved 1e reserved 1f reserved 1f reserved 1f reserved 25 www .ti.com
tsc2301 register overview tsc2301 slas371d ? september 2002 ? revised august 2004 table 4. register summary for tsc2301 page addr register d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 reset (hex) name value (hex) 0 00 x 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 01 y 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 02 z1 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 03 z2 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 04 kpdata k15 k14 k13 k12 k11 k10 k9 k8 k7 k6 k5 k4 k3 k2 k1 k0 0000 0 05 bat1 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 06 bat2 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 07 aux1 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 08 aux2 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 09 temp1 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 0a temp2 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 0000 0 0b dac 0 0 0 0 0 0 0 0 d7 d6 d5 d4 d3 d2 d1 d0 0080 0 0c reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 0d reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 0e reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 0f reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 10 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 11 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 12 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 13 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 14 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 15 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 16 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 17 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 18 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 19 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 1a reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 1b reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 1c reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 1d reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 1e reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 0 1f reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 00 adc psm sts ad3 ad2 ad1 ad0 rs1 rs0 av1 av0 cl1 cl0 pv2 pv1 pv0 0 4000 1 01 key stc scs db2 db1 db0 0 0 0 0 0 0 0 0 0 0 0 4000 1 02 dacctl dpd 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8000 1 03 ref 0 0 0 0 0 0 0 0 0 0 0 int dl1 dl0 pdn rfv 0002 1 04 reset 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 ffff 1 05 config 1 1 1 1 1 1 1 1 1 1 pr2 pr1 pr0 sn2 sn1 sn0 ffc0 1 06 config2 sda/ kbc pll pct pdc pdc pdc pdc a3 a2 a1 a0 n3 n2 n1 n0 ffff v/kb 0 o e 3 2 1 0 c1 1 07 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 08 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 09 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 0a reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 0b reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 0c reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 0d reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 0e reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 26 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 table 4. register summary for tsc2301 (continued) page addr register d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 reset (hex) name value (hex) 1 0f reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 10 kpmask m15 m14 m13 m12 m11 m10 m9 m8 m7 m6 m5 m4 m3 m2 m1 m0 0000 1 11 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 12 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 13 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 14 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 15 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 16 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 17 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 18 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 19 reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 1a reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 1b reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 1c reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 1d reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 1e reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 1 1f reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 2 00 audcntl hpf hpf inml inml inm inm mic mic mcl mcl i2sf i2sf i2sf i2sf i2sf i2sf c003 1 0 1 0 r1 r0 g1 g0 k1 k0 s3 s2 s1 s0 m1 m0 2 01 adcvol adm adv adv adv adv adv adv adv adm adv adv adv adv adv adv adv d7d7 ul l6 l5 l4 l3 l2 l1 l0 ur r6 r5 r4 r3 r2 r1 r0 2 02 dacvol dam dav dav dav dav dav dav dav dam dav dav dav dav dav dav dav ffff ul l6 l5 l4 l3 l2 l1 l0 ur r6 r5 r4 r3 r2 r1 r0 2 03 bpvol bpm bpv bpv bpv bpv bpv bpv bpv bpm bpv bpv bpv bpv bpv bpv bpv e7e7 ul l6 l5 l4 l3 l2 l1 l0 ur r6 r5 r4 r3 r2 r1 r0 2 04 keyclick key kca kca kca 0 kcf kcf kcf kcl kcl kcl kcl 0 mon ssr sst 4411 st m2 m1 m0 r2 r1 r0 n3 n2 n1 n0 s te ep 2 05 pd/misc apd avp abp hap mop dap adp adp pds mibp osc bck smp ots bas dee ffc4 d d d d d dl dr ts d c c d yn s mp 2 06 gpio 0 0 io5 io4 io3 io2 io1 io0 0 0 gpi gpi gpi gpi gpi gpi 0000 o5 o4 o3 o2 o1 o0 2 07 bbcfn0l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 6be2 2 08 bbcfn1l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 9667 2 09 bbcfn2l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 675d 2 0a bbcfn3l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 6be2 2 0b bbcfn4l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 9667 2 0c bbcfn5l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 675d 2 0d bbcfd1l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 7d82 2 0e bbcfd2l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 84ef 2 0f bbcfd4l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 7d82 2 10 bbcfd5l cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 84ef 2 11 bbcfn0r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 6be2 2 12 bbcfn1r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 9667 2 13 bbcfn2r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 675d 2 14 bbcfn3r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 6be2 2 15 bbcfn4r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 9667 2 16 bbcfn5r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 675d 2 17 bbcfd1r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 7d82 2 18 bbcfd2r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 84ef 2 19 bbcfd4r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 7d82 2 1a bbcfd5r cf15 cf14 cf13 cf12 cf11 cf10 cf9 cf8 cf7 cf6 cf5 cf4 cf3 cf2 cf1 cf0 84ef 27 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 table 4. register summary for tsc2301 (continued) page addr register d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 reset (hex) name value (hex) 2 1b adclkcf 0 0 0 0 0 1 0 0 0 0 0 0 plp com 0 0 0400 g n k 2 1c reserved 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ffff 2 1d reserved 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000 2 1e reserved 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000 2 1f reserved 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4000 28 www .ti.com
tsc2301 touch screen control registers tsc2301 adc control register (page 1, address 00h) tsc2301 slas371d ? september 2002 ? revised august 2004 this section describes each of the registers shown in the memory map of figure 54 . the registers are grouped according to the function they control. in the tsc2301, bits in control registers can refer to slightly different functions depending upon whether you are reading the register or writing to it. a summary of all registers and bit locations is shown in table 4 . the adc in the tsc2301 is shared between all the different functions. a control register determines which input is selected, as well as other options. the result of the conversion is placed in one of the result registers in page 0 of memory, depending upon the function selected. the adc control register controls several aspects of the adc. the register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb psm sts ad3 ad2 ad1 ad0 rs1 rs0 av1 av0 cl1 cl0 pv2 pv1 pv0 x bit 15 ? psm pen status/control mode. reading this bit allows the host to determine if the screen is touched. writing to this bit determines the mode used to read coordinates: host controlled or under control of the tsc2301 responding to a screen touch. when reading, the pensts bit indicates if the pen is down or not. when writing to this register, this bit determines if the tsc2301 controls the reading of coordinates, or if the coordinate conversions are host-controlled. the default state is host-controlled conversions (0). table 5. psm bit operation psm read/write value description read 0 no screen touch detected (default) read 1 screen touch detected write 0 conversions controlled by host write 1 conversions controlled by tsc2301 bit 14 ? sts adc status. reading this bit indicates if the converter is busy. writing a 0 to this bit causes the touch screen scans to continue until either the pen is lifted or the process is stopped. continuous scans or conversions can be stopped by writing a 1 to this bit. this immediately halts a conversion (even if the pen is still down) and causes the adc to power down. the default state is continuous conversions, but if this bit is read after a reset or power-up, it reads 1. table 6. sts bit operation sts read/write value description read 0 converter is busy read 1 converter is not busy (default) write 0 normal operation write 1 stop conversion and power down 29 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bits [13:10] ? ad3 - ad0 adc function select bits. these bits control which input is to be converted, and what mode the converter is placed in. these bits are the same whether reading or writing. see table 7 for a complete listing of how these bits are used. table 7. adc function select a/d3 a/d2 a/d1 a/d0 function 0 0 0 0 invalid. no registers are updated. this is the default state after a reset. 0 0 0 1 touch screen scan function: x and y coordinates converted and the results returned to x and y data registers. scan continues until either the pen is lifted or a stop bit is sent. 0 0 1 0 touch screen scan function: x, y, z1 and z2 coordinates converted and the results returned to x, y, z1 and z2 data registers. scan continues until either the pen is lifted or a stop bit is sent. 0 0 1 1 touch screen scan function: x coordinate converted and the results returned to x data register. 0 1 0 0 touch screen scan function: y coordinate converted and the results returned to y data register. 0 1 0 1 touch screen scan function: z1 and z2 coordinates converted and the results returned to z1 and z2 data registers. 0 1 1 0 battery input 1 converted and the results returned to the bat1 data register. 0 1 1 1 battery input 2 converted and the results returned to the bat2 data register. 1 0 0 0 auxiliary input 1 converted and the results returned to the aux1 data register. 1 0 0 1 auxiliary input 2 converted and the results returned to the aux2 data register. 1 0 1 0 a temperature measurement is made and the results returned to the temperature measurement 1 data register. 1 0 1 1 port scan function: battery input 1, battery input 2, auxiliary input 1, and auxiliary input 2 measurements are made and the results returned to the appropriate data registers 1 1 0 0 a differential temperature measurement is made and the results returned to the temperature measurement 2 data register. 1 1 0 1 turn on x+, x- drivers 1 1 1 0 turn on y+, y- drivers 1 1 1 1 turn on y+, x- drivers bits[9:8] ? rs1, rs0 resolution control. the adc resolution is specified with these bits. seetable 8 for a description of these bits. these bits are the same whether reading or writing. table 8. adc resolution control rs1 rs0 function 0 0 12-bit resolution. power up and reset default. 0 1 8-bit resolution 1 0 10-bit resolution 1 1 12-bit resolution 30 www .ti.com
dac control register (page 1, address 02h) tsc2301 slas371d ? september 2002 ? revised august 2004 bits[7:6] ? av1, av0 converter averaging control. these two bits (see table 9 ) allow you to specify the number of averages the converter performs. note that when averaging is used, the sts/stp bit and the dav output indicates that the converter is busy until all conversions necessary for the averaging are complete. the default state for these bits is 00, selecting no averaging. these bits are the same whether reading or writing. table 9. adc conversion averaging control av1 av0 function 0 0 none (one conversion) (default) 0 1 4 data averages 1 0 8 data averages 1 1 16 data averages bits[5:4] ? cl1, cl0 conversion clock control. these two bits specify the internal clock rate which the adc uses when performing a conversion. see table 10 . these bits are the same whether reading or writing. table 10. adc conversion clock control cl1 cl0 function 0 0 8-mhz internal clock rate - 8-bit resolution only (default) 0 1 4-mhz internal clock rate - 8- or 10-bit resolution only 1 0 2-mhz internal clock rate 1 1 1-mhz internal clock rate bits [3:1] ? pv2 - pv0 panel voltage stabilization time control. these bits allow the user to specify a delay time from when a driver is turned on to the time sampling begins and a conversion is started. in self-controlled mode, when a pen touch is detected, the part first turns on a driver, waits a programmed delay time set by pv2-pv0, and then begins sampling and a/d conversion. see table 11 for settings of these bits. the default state is 000, indicating a 0 s stabilization time. these bits are the same whether reading or writing. table 11. panel voltage stabilization time control pv2 pv1 pv0 stabilization time 0 0 0 0 s (default) 0 0 1 100 s 0 1 0 500 s 0 1 1 1 ms 1 0 0 5 ms 1 0 1 10 ms 1 1 0 50 ms 1 1 1 100 ms bit 0 this bit is reserved. when read, it always reads as a zero. the single bit in this register controls the power down control of the onboard digital-to-analog converter (dac). this register is formatted as follows: 31 www .ti.com
reference register (page 1, address 03h) tsc2301 slas371d ? september 2002 ? revised august 2004 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb dpd x x x x x x x x x x x x x x x bit 15 ? dpd dac power down. this bit controls whether the dac is powered up and operational, or powered down. if the dac is powered down, the aout pin neither sinks nor sources current. table 12. dpd bit operation dpd value description 0 dac is powered and operational 1 dac is powered down. (default) this register controls whether the tsc2301 uses an internal or external reference, and if the internal reference is used, the value of the reference voltage, whether it powers down between conversions and the programmable settling time after reference power-up. this register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 lsb msb 11 x x x x x x x x x x x int dl1 dl0 pdn rfv bit 4 ?int internal reference mode. if this bit is written to a 1, the tsc2301 uses its internal reference; if this bit is a 0, the part assumes an external reference is being supplied. the default state for this bit is to select an external reference (0). this bit is the same whether reading or writing. table 13. int bit operation int value description 0 external reference selected (default) 1 internal reference selected bits [3:2] ? dl1, dl0 reference power-up delay. when the internal reference is powered up, a finite amount of time is required for the reference to settle. if measurements are made before the reference has settled, these measurements are in error. these bits allow for a delay time for measurements to be made after the reference powers up, thereby assuring that the reference has settled. longer delays are necessary depending upon the capacitance present at the vrefin pin (see typical curves). the delays are shown in table 14 . the default state for these bits is 00, selecting a 0 microsecond delay. these bits are the same whether reading or writing. table 14. reference power-up delay settings. dl1 dl0 delay time 0 0 0us (default) 0 1 100 s 1 0 500 s 1 1 1000 s bit 1 ?pdn reference power down. if a 1 is written to this bit, the internal reference are powered down between conversions. if this bit is a zero, the internal reference is powered at all times. the default state is to power down the internal reference, so this bit will be a 1. this bit is the same whether reading or writing. 32 www .ti.com
tsc2301 configuration control register (page 1, address 05h) tsc2301 slas371d ? september 2002 ? revised august 2004 table 15. pdn bit operation pdn value description 0 internal reference is powered at all times 1 internal reference is powered down between conversions. (default) note that the pdn bit, in concert with the int bit, creates a few possibilities for reference behavior. these are detailed in table 16 . table 16. reference behavior possibilities int pdn reference behavior 0 0 external reference used, internal reference powered down. 0 1 external reference used, internal reference powered down. 1 0 internal reference used, always powered up 1 1 internal reference used, powers up during conversions and then powers down. bit 0 ? rfv reference voltage control. this bit selects the internal reference voltage, either 1.2 v or 2.5 v. the default value is 1.2 v. this bit is the same whether reading or writing. table 17. rfv bit operation rfv value description 0 1.2-v reference voltage (default) 1 2.5-v reference voltage this control register controls the configuration of the precharge and sense times for the touch detect circuit. the register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb res res res res res res res res res res pre2 pre1 pre0 sns2 sns1 sns0 33 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bits [5:3] ? pre[2:0] precharge time selection bits. these bits set the amount of time allowed for precharging any pin capacitance on the touch screen prior to sensing if the screen is being touched. table 18. precharge times pre[2:0] pre2 pre1 pre0 time 0 0 0 20 s (default) 0 0 1 84 s 0 1 0 276 s 0 1 1 340 s 1 0 0 1.044 ms 1 0 1 1.108 ms 1 1 0 1.300 ms 1 1 1 1.364 ms bits [2:0] ? sns[2:0] sense time selection bits. these bits set the amount of time the tsc2301 waits to sense a screen touch between coordinate axis conversions in self-controlled mode. table 19. sense times sns[2:0] sns2 sns1 sns0 time 0 0 0 32 s (default) 0 0 1 96 s 0 1 0 544 s 0 1 1 608 s 1 0 0 2.080 ms 1 0 1 2.144 ms 1 1 0 2.592 ms 1 1 1 2.656 ms 34 www .ti.com
tsc2301 keypad registers keypad control register (page 1, address 01h) tsc2301 slas371d ? september 2002 ? revised august 2004 the keypad scanner hardware in the tsc2301 is controlled by two registers: the keypad control register and the keypad mask register. the keypad control register controls general keypad functions such as scanning and de-bouncing, while the keypad mask register allows you to mask certain keys from being detected at all. the keypad control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb stc scs db2 db1 db0 x x x x x x x x x x x bit 15 ? stc keypad status. this bit reflects the operation of the kbirq pin, with inverted logic. this bit goes high when a key is pressed and debounced. the default value for this bit is 0. table 20. stc bit operation stc value description 0 no keys are pressed (default) 1 key pressed and debounced bit 14 ? scs keypad scan status. when reading, this bit indicates if the scanner or de-bouncer is busy. writing a 0 to this bit causes keypad scans to continue until either the key is lifted or the process is stopped. continuous scans can be stopped by writing a 1 to this bit. this immediately halts a conversion (even if a key is still down). the default value for this bit when read is 1. table 21. scs bit operation scs read/write value description read 0 scanner or de-bouncer busy read 1 scanner not busy (default) write 0 normal operation write 1 stop scans bits [13:11] ? kbdb2-kbdb0 keypad de-bounce control. these bits set the length of the de-bounce time for the keypad, as shown in table 22 . the default setting is a 2-ms de-bounce time (000). table 22. keypad de-bounce control kbdb2 kbdb1 kbdb0 function 0 0 0 de-bounce: 2 ms (default) 0 0 1 de-bounce: 10 ms 0 1 0 de-bounce: 20 ms 0 1 1 de-bounce: 50 ms 1 0 0 de-bounce: 60 ms 1 0 1 de-bounce: 80 ms 1 1 0 de-bounce: 100 ms 1 1 1 de-bounce: 120 ms 35 www .ti.com
keypad mask register (page 1, address 10h) secondary configuration register (page 1, address 06h): tsc2301 slas371d ? september 2002 ? revised august 2004 the keypad mask register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb m15 m14 m13 m12 m11 m10 m9 m8 m7 m6 m5 m4 m3 m2 m1 m0 this is the same format as used in the keypad data register (page 0, address 04h). each bit in these registers represents one key on the keypad. in the mask register, if a bit is set (1), then that key is not detected in keypad scans. pressing that key on the keypad also does not cause a kbirq, if the bit is set. if the bit is cleared (0), the corresponding key is detected when pressed. a 16-key keypad is mapped into the keypad mask (and keypad data) register as shown in table 23 . the default value for this register is 0000h, detecting all key presses. table 23. keypad to key bit mapping c1 c2 c3 c4 r1 k0 k1 k2 k3 r2 k4 k5 k6 k7 r3 k8 k9 k10 k11 r4 k12 k13 k14 k15 the result of a keypad scan appears in the keypad data register. each bit is set in this register, corresponding to the key(s) actually pressed. for example, if only key 1 was pressed on a particular scan, the data in the register would read as 0x0002; however, if keys 6, 8, and 13 were all pressed simultaneously on that scan, the data would read as 0x2140. multiple keys can be pressed simultaneously and are generally decoded correctly by the keypad scan circuitry. however, keys that land on three corners of a rectangle can cause a false reading of a key on the fourth corner of the rectangle. for example, if keys 0, 3, and 11 were pressed simultaneously, the key0, key3, and key11 bits are set, but the key8 bit is also set. thus, when considering using multiple-key combinations in an application, try to avoid combinations that put three keys on the corners of a rectangle. this register allows the user to read the status of the dav pin through the spi interface. it controls the behavior of the kbirq signal, as well as provides control of the audio codec pll. bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb sdav/k kbc0 pllo pcte pdc3 pdc2 pdc1 pdc0 a3 a2 a1 a0 n3 n2 n1 n0 bc1 36 www .ti.com
bit 13 ? pllo tsc2301 slas371d ? september 2002 ? revised august 2004 bit 15 ? sdav (write only) spi data available. this read-only bit mirrors the function of the dav pin. this bit is provided so that the host processor can poll the spi interface to see whether data is available, without dedicating a gpio pin from the host processor to the tsc2301 dav pin. this bit is normally high, goes low when touch screen or keypad data is available, and is reset high when all the new data has been read. when written to, this bit becomes kbc1, operation detailed below. table 24. spi data available (read only) sdav description 0 touchscreen data is available. 1 no new data available (default) bits [15:14] ? kbc1-kbc0 (write mode) kbirq control (write-only mode). these bits control the behavior of the kbirq signal. there are four possible ways to de-assert the kbirq signal once it goes low. these bits control which particular events cause the kbirq signal to be de-asserted (go high). the four de-assertion possibilities are: a. hardware or software reset. hardware reset?reset pin asserted (high) and subsequently de-asserted. software reset?writing bb00h to register 04h, page 1. b. writing 1 to the scs bit. bit 14 of register 01h, page 1 c. releasing the pressed key on the keypad. d. reading the keypad data register (register 04h, page0). refer to the table below to see which settings of the kbc1 - kbc0 correspond to the kbirq reset events. when read, kbc1 becomes sdav operation detailed above. kbc0 operates the same as in read and write modes. table 25. kbirq behavior possibilities kbc1 kbc0 kbirq reset event 0 0 de-assertion possibility a or b or c. 0 1 de-assertion possibility a or b. 1 0 de-assertion possibility a or b or c or d. 1 1 de-assertion possibility a or b or d (default). pll output on gpio_0. this bit allows the user to receive the output of the audio codec internal pll. this bit is provided so the host processor can use the output of the pll, to generate its i 2 s signals in sync with an external mclk or crystal oscillator. writing a 0 to this bit connects the output of the pll to the gpio_0 pin. otherwise, the gpio_0 pin operates as normal. table 26. pll output pllo description 0 output pll on gpio_0. 1 gpio_0 operates as normal (default). 37 www .ti.com
bit 12 ? pcte bit [11:8] ? pdc3 - pdc0 bit [7:4] ? a3 - a0 bit [3:0] ? n3 - n0 (3) tsc2301 slas371d ? september 2002 ? revised august 2004 pll control enable. this bit allows the user to manually control the audio codec internal pll. this allows the user to modify the contents of bits [11-0] to control the audio codec pll. writing a 0 to this bit enables manual control of the pll. otherwise, the pll is set automatically based on the settings of mclk [1:0] and i2sfs[3:0] in the audio control register (bits 7-2 in register 00h, page 2). table 27. pll control enable pllo description 0 allows modification of bits [11:0]. 1 pll operates as normal, no manual override (default). pll predivider control. this bit controls the predivider to the internal pll. these bits represent a 4-bit straight binary number corresponding to the variable p in the pll control equation discussed later in this section. the legal range of these bits is 1h to fh. the default of these bits is fh. a control. this bit represent a 4-bit straight binary number corresponding to the variable a in the pll control equation discussed later in this section. the legal range of these bits is 0h to fh. the default of these bits is fh. n control. this bit represents a 4-bit straight binary number corresponding to the variable n in the pll control equation discussed later in this section. the legal range of these bits is 0h to fh. the default of these bits is fh. when using a nonaudio standard mclk frequency or crystal that is not covered by any of the automatic pll settings in mclk[1:0], the user must manually configure the tsc2301 pll to generate the proper clock for the audio data converters. the proper clock for any sampling rates that are submultiples of 44.1 khz is 512 x 44.1 khz = 22.5792 mhz. this frequency is valid for 44.1 khz, 22.05 khz, and 11.025 khz. the proper clock for any sampling rates that are submultiples of 48 khz is 512 x 48 khz = 24.576 mhz. this frequency is valid for 48 khz, 32 khz, 24 khz, 16 khz, 12 khz, and 8 khz. equation 3 is used to obtain the proper frequency. since variables p, n, and a are integers, the exact proper clock frequencies can not always be obtained. however, examples are provided for common mclk/crystal frequencies that minimize the error of the pll output. one constraint is the n must always be greater than or equal to a. another constraint is that the output of the mclk predivider (the mclk/p term) should be greater than 1 mhz. p can be any integer from 1 to 15, inclusive. n and a can be any integer from 0 to 15, inclusive. in some situations, settings outside of these constraints may work, but should be verified by the user beforehand. table 28 shows some settings that have been tested and confirmed to work by ti. table 28. pll settings mclk (mhz) desired p a n actual f out (mhz) % error f out (mhz) 12 24.576 7 7 9 24.57143 -0.019 13 24.576 9 7 11 24.55556 -0.083 16 24.576 13 12 12 24.61538 0.160 19.2 24.576 13 10 10 24.61538 0.160 19.68 24.576 12 9 9 24.60000 0.097 3.6869 22.5792 3 7 12 22.53106 -0.213 12 22.5792 11 10 13 22.54545 -0.149 13 22.5792 14 13 15 22.59524 0.071 16 22.5792 13 11 11 22.56410 -0.067 19.2 22.5792 15 9 11 22.61333 0.151 38 www .ti.com f o u t  m c l k p  ( 4 n  a ) 3 , ( n  a ) ,  m c l k p  1 m h z 
tsc2301 data registers x, y, z1, z2, bat1, bat2, aux1, aux2, temp1, and temp2 registers keypad data register (page 0, address 04h) dac data register (page 0, address 0bh) operation - touch screen measurements conversion controlled by tsc2301 initiated at touch detect tsc2301 slas371d ? september 2002 ? revised august 2004 table 28. pll settings (continued) mclk (mhz) desired p a n actual f out (mhz) % error f out (mhz) 19.68 22.5792 9 3 7 22.59556 0.072 the data registers of the tsc2301 hold data results from conversions or keypad scans, or the value of the dac output current. all of these registers default to 0000h upon reset, except the dac register, which is set to 0080h, representing the midscale output of the dac. the results of all a/d conversions are placed in the appropriate data register, as described in table 5 and table 3 . the data format of the result word, r, of these registers is right-justified, as follows (assuming a 12-bit conversion): bit 15 bit 14 bit bit bit bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb 13 12 11 lsb 0 0 0 0 r11 r10 r9 r8 r7 r6 r5 r4 r3 r2 r1 r0 msb lsb the keypad data register (page 0, address 04h) is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb k15 k14 k13 k12 k11 k10 k9 k8 k7 k6 k5 k4 k3 k2 k1 k0 this is the same format as used in the keypad mask register (page 1, address 10h). each bit in these registers represents one key on the keypad. a 16-key keypad is mapped into the keypad data register as shown in table 23 . the data to be written to the dac is written into the dac data register, which is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb res res res res res res res res d7 d6 d5 d4 d3 d2 d1 d0 there are three different touch screen conversion modes available in the tsc2301: self-controlled or penirq-initiated, host-initiated, and host-controlled. these three modes are described below. in this mode, the tsc2301 detects when the touch panel is touched and causes the penirq line to go low. at the same time, the tsc2301 powers up its internal clock. it then turns on the y-drivers, and after a programmed panel voltage stabilization time, powers up the adc and convert the y coordinate. if averaging is selected, several conversions may take place; when data averaging is complete, the y coordinate result is stored in the y register. this mode is recommended to fully utilize the integrated touch screen processing of the tsc2301 and reduce the processing overhead and number of interrupts to the host processor. in this mode, the host processor does not need to monitor penirq, instead the host needs only to configure the tsc2301 once at power-up, and then monitor dav and read back data after a falling edge on dav. if the screen is still touched at this time, the x-drivers are enabled, and the process repeats, but measures instead the x coordinate, storing the result in the x register. 39 www .ti.com
(4) (5) tsc2301 slas371d ? september 2002 ? revised august 2004 if only x and y coordinates are to be measured, then the conversion process is complete. figure 51 shows a flowchart for this process. the time it takes to go through this process depends upon the selected resolution, internal conversion clock rate, averaging selected, panel voltage stabilization time, and precharge and sense times. the time needed to get a complete x/y coordinate reading can be calculated by: where: t coordinate = time to complete x/y coordinate reading; t pvs = panel voltage stabilization time, as given in table 11 ; t pre = precharge time, as given in table 18 ; t sns = sense time, as given in table 19 ; n avg = number of averages, as given in table 9 ; for no averaging, navg = 1; n bits = number of bits of resolution, as given in table 8 ; f conv = a/d converter clock frequency, as given in table 10 . if the pressure of the touch is also to be measured, the process continues after the x-conversion is complete, measuring the z1 and z2 values, and placing them in the z1 and z2 registers. this process is illustrated in figure 52 . as before, this process time depends upon the settings described above. the time for a complete x/y/z1/z2 coordinate reading is given by: 40 t c o o r d i n a t e  2 . 5  s  2  t p v s  t p r e  t s n s   2 n a v g  n b i t s 1 f c o n v  4 . 4  s  t c o o r d i n a t e  4 . 7 5  s  3  t p v s  t p r e  t s n s   4 n a v g  n b i t s 1 f c o n v  4 . 4  s  www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan x and y penirq initiated figure 51. x & y coordinate touch screen scan, initiated by touch 41 t urn on drivers: y+, y - issue interrupt penirq is pensts =1 start clock is panel v oltage stabilization done convert y coordinates store y coordinates in y register is screen t ouched t urn on drivers: x+, x - is panel v oltage stabilization done convert x coordinates store x coordinates in x register set /da v = 0 is screen t ouched t urn off clock reset penirq and scan t rigger screen t ouch done go t o host controlled conversion n t urn off clock reset penirq and scan t rigger done power up adc power down adc power up adc power down adc is data a veraging is data a veraging n y y n y n y y n n y y n done done www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan x, y and z penirq initiated figure 52. x,y and z coordinate touch screen scan, initiated by touch 42 issue interrupt penirq t urn on drivers: y+, y - is pensts =1 start clock is panel v oltage stabilization done convert y coordinates store y coordinates in y register is screen t ouched t urn on drivers: x+, x - is panel v oltage stabilization done convert x coordinates store x coordinates in x register is screen t ouched t urn off clock reset penirq and scan t rigger screen t ouch done go t o host controlled conversion n t urn off clock reset penirq and scan t rigger done power up adc power down adc power up adc power down adc is data a veraging done is data a veraging done n y n y n y y n n y y n t urn on drivers: y+, x - is panel v oltage stabilization done convert z1 coordinates store z1 coordinates in z1 register set /da v = 0 power up adc power down adc is data a veraging done n y y n convert z2 coordinates store z2 coordinates in z2 register is data a veraging done n y t urn off clock reset penirq and scan t rigger done is screen t ouched y www .ti.com
conversion controlled by tsc2301 initiated by host responding to penirq tsc2301 slas371d ? september 2002 ? revised august 2004 this mode is provided for users who want more control over the a/d conversion process. this mode requires more overhead from the host processor, so it is generally not recommended. in this mode, the tsc2301 detects when the touch panel is touched and causes the penirq line to go low. the host recognizes the interrupt request, and then writes to the adc control register to select one of the touch screen scan functions (single x-, y-, or z-conversions, continuous x/y or x/y/z1/z2 conversions). the conversion process then proceeds as described above, and as outlined in figure 53 through figure 57 . the main difference between this mode and the previous mode is that the host, not the tsc2301, decides when the touch screen scan begins after responding to a penirq. in this mode, the host must either monitor both penirq and dav, or wait a minimum time after writing to the a/d converter control register. this wait time can be calculated from equation 6 in the case of single conversions, or from equation 4 or equation 5 in the case of multiple conversions. the nominal conversion times calculated by these equations should be extended by approximately 12% to account for variation in the internal oscillator frequency. 43 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan x and y host initiated figure 53. x and y coordinate touch screen scan, initiated by host 44 issue interrupt penirq t urn on drivers: y+, y - is pensts =1 start clock is panel v oltage stabilization done convert y coordinates store y coordinates in y register is screen t ouched t urn on drivers: x+, x - is panel v oltage stabilization done convert x coordinates store x coordinates in x register set /da v = 0 is screen t ouched t urn off clock screen t ouch done go t o host controlled conversion n t urn off clock reset penirq and scan t rigger done power up adc power down adc power up adc power down adc is data a veraging done is data a veraging done n y n y n y n n y y n done host writes a/d converter control register reset penirq y www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan x, y and z host initiated figure 54. x,y and z coordinate touch screen scan, initiated by host 45 t urn on drivers: y+, y - issue interrupt penirq is pensts =1 start clock is panel v oltage stabilization done convert y coordinates store y coordinates in y register is screen t ouched t urn on drivers: x+, x - is stabilization done convert x coordinates store x coordinates in x register is screen t ouched t urn off clock screen t ouch done go t o host controlled conversion n t urn off clock reset penirq and scan t rigger done power up adc power down adc power up adc power down adc is data a veraging done is data a veraging done n y n y n y y n n y y n t urn on drivers: y+, x - is panel v oltage stabilization done convert z1 coordinates store z1 coordinates in z1 register set /da v = 0 power up adc power down adc is data a veraging done n y y n convert z2 coordinates store z2 coordinates in z2 register is data a veraging done n y t urn off clock reset penirq and scan t rigger done is screen t ouched done host writes a/d converter control register reset penirq panel v oltage www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan x coordinate host initiated figure 55. x coordinate reading initiated by host 46 t urn on drivers: x+, x - issue interrupt penirq is pensts =1 start clock is panel v oltage stabilization done convert x coordinates store x coordinates in x register set /da v = 0 t urn off clock screen t ouch done go t o host controlled conversion n power up adc power down adc is data a veraging n n y done host writes a/d converter control register reset penirq start clock are drivers on y n y done www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan y coordinate host initiated figure 56. y coordinate reading initiated by host 47 www .ti.com t urn on drivers: y+, y - issue interrupt penirq is pensts =1 start clock is panel v oltage stabilization done convert y coordinates store y coordinates in y register set /da v = 0 t urn off clock screen t ouch done go t o host controlled conversion n power up adc power down adc is data a veraging done n n done host w rites a/d converter control register reset penirq start clock are drivers on y n
conversion controlled by the host tsc2301 slas371d ? september 2002 ? revised august 2004 touch screen scan z coordinate host initiated figure 57. z coordinate reading initiated by host in this mode, the tsc2301 detects when the touch panel is touched and causes the penirq line to go low. the 48 www .ti.com issue interrupt penirq is pensts =1 start clock t urn off clock screen t ouch go t o host controlled conversion n t urn on drivers: y+, x - is panel v oltage stabilization done convert z1 coordinates store z1 coordinates in z1 register set /da v = 0 power up adc power down adc is data a veraging done n y y n convert z2 coordinates store z2 coordinates in z2 register is data a veraging done n done y done host writes a/d converter control register reset penirq are drivers on start clock n
(6) tsc2301 slas371d ? september 2002 ? revised august 2004 host recognizes the interrupt request. instead of starting a sequence in the tsc2301, which then reads each coordinate in turn, the host now must control all aspects of the conversion. an example sequence would be: (a) penirq goes low when screen is touched. (b) host writes to tsc2301 to turn on x-drivers. (c) host waits a desired delay for panel voltage stabilization. (d) host writes to tsc2301 to begin x-conversion. after waiting for the settling time, the host then addresses the tsc2301 again, this time requesting an x coordinate conversion. the process is then repeated for y and z coordinates. the processes are outlined in figure 58 through figure 60 . the time needed to convert any single coordinate under host control (not including the time needed to send the command over the spi bus) is given by: 49 www .ti.com t c o o r d i n a t e  2 . 1 2 5  s  t p v s  n a v g  n b i t s 1 ? c o n v  4 . 4  s 
tsc2301 slas371d ? september 2002 ? revised august 2004 host controlled x coordinate figure 58. x coordinate reading controlled by host 50 t urn on drivers: x+, x - issue interrupt penirq is pensts =1 is panel v oltage stabilization done convert x coordinates store x coordinates in x register issue data a vailable t urn off clock screen t ouch done go t o host controlled conversion power up adc power down adc is data a veraging n n y done host writes a/d converter control register reset penirq done host writes a/d converter control register start clock are drivers on t urn on drivers: x+, x - y n y n start clock done www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 host controlled y coordinate figure 59. y coordinate reading controlled by host 51 t urn on drivers: y+, y - issue interrupt penirq is pensts =1 is panel v oltage stabilization done conver y coordinates store y coordinates in y register set /da v = 0 t urn off clock screen t ouch done go t o host controlled conversion power up adc power down adc is data a veraging n n y done host writes a/d converter control register reset penirq done host writes a/d converter control register start clock are drivers on y n y n start clock t urn on drivers: y+, y - done www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 host controlled z coordinate figure 60. z coordinate reading controlled by host 52 start clock t urn off clock n t urn on drivers: y+, x - is panel v oltage stabilization done convert z1 coordinates store z1 coordinates in z1 register set /da v = 0 power up adc power down adc is data a veraging done n y y n convert z2 coordinates store z2 coordinates in z2 register is data a veraging done n done y host writes a/d converter control register reset penirq are drivers on start clock n y issue interrupt penirq is pensts =1 screen t ouch go t o host controlled conversion n done t urn on drivers: x+, x - host writes a/d converter control register reset penirq done www .ti.com
operation - temperature measurement (7) (8) (9) tsc2301 slas371d ? september 2002 ? revised august 2004 in some applications, such as estimating remaining battery life or setting ram refresh rate, a measurement of ambient temperature is required. the temperature measurement technique used in the tsc2301 relies on the characteristics of a semiconductor junction operating at a fixed current level. the forward diode voltage (v be ) has a well-defined characteristic versus temperature. the ambient temperature can be predicted in applications by knowing the 25 c value of the v be voltage and then monitoring the delta of that voltage as the temperature changes. the tsc2301 offers two modes of temperature measurement. the first mode requires calibration at a known temperature, but only requires a single reading to predict the ambient temperature. a diode, as shown in figure 61 , is used during this measurement cycle. the voltage across this diode is typically 600 mv at 25 c while conducting a 20 -a current. the absolute value of this diode voltage can vary several millivolts, but the temperature coefficient (tc) of this voltage is very consistent at -2.1 mv/ c. during the final test of the end product, the diode voltage would be measured by the tsc2301 adc at a known room temperature, and the corresponding digital code stored in system memory, for calibration purposes by the user. the result is an equivalent temperature measurement resolution of 0.3 c/lsb. this measurement of what is referred to as temperature 1 is illustrated in figure 62 . figure 61. functional block diagram of temperature measurement mode the second mode does not require a test temperature calibration, but uses a two-measurement (differential) method to eliminate the need for absolute temperature calibration, and achieves a 2 c/lsb accuracy. this mode requires a second conversion with a current 82 times larger than the first 20- a current. the voltage difference between the first (temp1) and second (temp2) conversion, using 82 times the bias current, is represented by kt/q ln (n), where n is the current ratio = 82, k = boltzmann's constant (1.38054 x 10 -23 electron volts/degree kelvin), q = the electron charge (1.602189 x 10 -19 c), and t = the temperature in degrees kelvin. this method can provide much improved absolute temperature measurement without calibration, with resolution of 2 c/lsb. the resultant equation for solving for k is: where: (in mv) temperature 2 measurement is illustrated in figure 63 . 53 x+ mux a/d converter t emperature select temp1 temp2 k  q  v k  n ( n )  v  v  i 8 2  v  i 1  k  q  v k  n ( n ) www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 temperature input 1 figure 62. single temperature measurement mode 54 www .ti.com start clock t urn off clock convert t emperature input 1 store t emperature input 1 in temp1 register set /da v = 0 power up adc power down reference is data a veraging done n power down adc done host writes a/d converter control register power up reference (including programmed delay) y
operation - battery measurement tsc2301 slas371d ? september 2002 ? revised august 2004 temperature input 2 figure 63. additional temperature measurement for differential temperature reading an added feature of the tsc2301 is the ability to monitor the battery voltage which may be much larger than the supply voltage of the tsc2301. an example of this is shown in figure 64 , where a battery voltage ranging up to 6 v may be regulated by a dc/dc converter or low-dropout regulator to provide a lower supply voltage to the tsc2301. the battery voltage can vary from 0.5 v to 6 v while maintaining the voltage to the tsc2301 at a level of 2.7 v-3.6 v. the input voltage on v bat1 is divided down by 4 so that a 6.0-v battery voltage is represented as 1.5 v to the a/d, while the input voltage on v bat2 is divided by 2 so that 3.0-v battery voltage is represented as 1.5 v to the a/d. if the battery voltage is low enough, the 1.2 v internal reference can be used to decrease lsb size, potentially improving accuracy. the battery voltage on v bat1 must be below 4* v ref , and the voltage on v bat2 must be below 2* v ref . due to constraints of the internal switches, the input to the a/d after the voltage divider cannot be above 1.5 v or v ref , whichever is lower. in order to minimize the power consumption, the divider is only on during the sampling of the battery input. 55 www .ti.com start clock t urn off clock convert t emperature input 2 store t emperature input 2 in temp2 register power up adc power down reference is data a veraging done n y power down adc done host writes a/d converter control register power up reference (including delay) set /da v = 0
(10) tsc2301 slas371d ? september 2002 ? revised august 2004 figure 64. vbat example battery measurement functional block diagrams, vdd = 2.7 v, v ref = 2.5 v flowcharts which detail the process of making a battery input reading are shown in figure 65 and figure 66 . the time needed to make temperature, auxiliary, or battery measurements is given by: where t ref is the reference delay time as given in table 14 . 56 + dc/dc converter 2.7 v 0.125 v to 1.5 v v c c 5.0 k  5.0 k  battery0.25 v+ to 3.0 v v b a t 2 adc t c o o r d i n a t e  2 . 6 2 5  s  t r e f  n a v g  n b i t s 1 ? c o n v  4 . 4  s  www .ti.com + dc/dc converter 2.7 v 0.125 v to 1.5 v v c c 7.5 k  2.5 k  battery 0.5 v+ to 6.0 v v b a t 1 adc
tsc2301 slas371d ? september 2002 ? revised august 2004 battery input 1 figure 65. v bat1 measurement process this assumes the reference control register is configured to power up the internal reference when needed. 57 start clock t urn off clock convert battery input 1 store battery input 1 in ba t1 register set /da v = 0 power up adc power down reference is data averagin done n y power down adc done host writes a/d converter control register power up reference (including delay) www .ti.com
operation - auxiliary measurement tsc2301 slas371d ? september 2002 ? revised august 2004 battery input 2 figure 66. v bat2 measurement process the two auxiliary voltage inputs can be measured in similar fashion to the battery inputs, with no voltage dividers. the input range of the auxiliary inputs is 0 v to v ref . figure 67 and figure 68 illustrate the process. applications for this feature may include external temperature sensing, ambient light monitoring for controlling an lcd back-light, or sensing the current drawn from the battery. 58 start clock t urn off clock convert battery input 2 store battery input 2 in ba t2 register set /da v = 0 power up adc power down reference is data averaging done n y power down adc done host writes a/d converter control register power up reference (including delay) www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 auxiliary input 1 figure 67. aux1 measurement process 59 start clock t urn off clock convert auxiliary input 1 store auxiliary input set /da v = 0 power up adc power down reference is data averaging done n y power down adc done host writes a/d converter control register power up reference (including delay) 1 in aux1 register www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 auxiliary input 2 figure 68. aux2 measurement process 60 start clock t urn off clock convert auxiliary input 2 store auxiliary input set /da v = 0 power up adc power down reference is data averaging done n y power down adc done host writes a/d converter control register power up reference (including delay) 2 in aux2 register www .ti.com
operation - port scan (11) tsc2301 slas371d ? september 2002 ? revised august 2004 if measurements of all the battery and auxiliary inputs are required, the port scan mode can be used. this mode causes the tsc2301 to sample and convert both battery inputs and both auxiliary inputs. at the end of this cycle, the battery and auxiliary data registers contain the updated values, and the dav pin is asserted low, signaling the host to read the data. thus, with one write to the tsc2301, the host can cause four different measurements to be made. because the battery and auxiliary data registers are consecutive in memory, all four registers can be read in one spi transaction, as described in figure 50 . the flowchart for this process is shown in figure 69 . the time needed to make a complete port scan is given by: port scan figure 69. port scan mode 61 t c o o r d i n a t e  7 . 5  s  t r e f  4 n a v g  n b i t s 1 ? c o n v  4 . 4  s  start clock t urn off clock convert battery input 1 store battery input 1 in ba t1 register set /da v = 0 power up adc power down reference is data a veraging done n y power down adc done host writes a/d converter control register power up reference (including delay) convert battery input 2 store battery input 2 in ba t2 register is data a veraging done n y convert auxiliary input 1 store auxiliary input in aux1 register is data a veraging done n y convert auxiliary input 2 store auxiliary input 2 in aux2 register is data a veraging done n y www .ti.com
operation - d/a converter tsc2301 slas371d ? september 2002 ? revised august 2004 the tsc2301 has an onboard 8-bit dac, configured as shown in figure 70 . this configuration yields a current sink (aout) controlled by the value of a resistor connected between the arng pin and ground. the d/a converter has a control register, which controls whether or not the converter is powered up. the eight-bit data is written to the dac through the dac data register. figure 70. d/a converter configuration this circuit is designed for flexibility in the output voltage at the vbias point shown in figure 70 to accommodate the widely varying requirements for lcd contrast control bias. v+ can be a higher voltage than the supply voltage for the tsc2301. the only restriction is that the voltage on the aout pin can never go above the absolute maximum ratings for the device, and should stay above 1.5 v for linear operation. the dac has an output sink range which is limited to approximately 1 ma. this range can be adjusted by changing the value of rrng shown in figure 70 . as this dac is not designed to be a precision device, the actual value of the output current range can vary as much as 20%. furthermore, the current output changes due to variations in temperature; the dac has a temperature coefficient of approximately 0.9 ua/ c. to set the full-scale current, rrng can be determined from the graph shown in figure 71 . 62 www .ti.com rrng vbias dac 8-bits v+ arng aout r1r2 tsc2301
tsc2301 slas371d ? september 2002 ? revised august 2004 figure 71. dac output current range vs rrng resistor value for example, consider an lcd that has a contrast control voltage vbias that can range from 2 v to 4 v, that draws 400 a when used, and has an available 5-v supply. this is higher than the tsc2301 supply voltage, but it is within the absolute maximum ratings. the maximum vbias voltage is 4 v, and this occurs when the d/a converter current is 0, so only the 400- a load current iload is flowing from 5 v to vbias. this means 1 v is dropped across r1, so r1 = 1 v/400 a = 2.5 k w. the minimum vbias is 2 v, which occurs when the d/a converter current is at its full scale value, imax. in this case, 5 v - 2 v = 3 v is dropped across r1, so the current through r1 is 3 v/2.5 k w = 1.2 ma. this current is imax + iload = imax + 400 ua, so imax must be set to 800 a. looking at figure 73 , this means that rrng should be around 1 m w. since the voltage at the aout pin must not go below 1.5 v, this limits the voltage at the bottom of r2 to be 1.5-v minimum; this occurs when the d/a converter is providing its maximum current, imax. in this case, imax +iload flows through r1, and imax flows through r2. thus, r2 x imax + r1(imax + iload) = 5 v - 1.5 v = 3.5 v w r1 = 2.5 k w imax = 800 a, iload = 400 a, thus allowing r2 to be solved as 625 w. in the previous example, when the dac current is zero, the voltage on the aout pin rises above the tsc2301 supply voltage. this is not a problem, however, since v+ was within the absolute maximum ratings of the tsc2301, so no special precautions are necessary. many lcd displays require voltages much higher than the absolute maximum ratings of the tsc2301. in this case, the addition of an npn transistor, as shown in figure 72 , protects the aout pin from damage. 63 www .ti.com 1 300200 100 0 10 k 100 k 1 m 10 m 100 m dac fullscale output current a 400 500 rrng resistor v alue dac fullscale output current vs rrng resist or v alue 600 m 1000 900800 700 1 100
tsc2301 slas371d ? september 2002 ? revised august 2004 figure 72. dac circuit when using v+ higher than v supply . 64 r 2 r 1 v + d a c r r n g 2 n 3 9 0 4 aout arng vdd tsc2301 v b i a s 8bits www .ti.com
operation - keypad interface tsc2301 slas371d ? september 2002 ? revised august 2004 the tsc2301 contains a keypad interface that is suitable for use with matrix keypads up to 4 x 4 keys. a control register, the keypad control register, is used to set the scan rate for the keypad and de-bounce times. there is also a keypad mask register which allows certain keys to be masked from being read, or from causing the tsc2301 to detect a key-press on selected keys. the results of keypad scans are placed in the keypad data register. when a column line (keypad input) is tied to logic high, pressing on all four keys connected to that column is sensed. for example, if c1 is tied high, pressing on keys 0, 4, 8, and 12 is detected in the keypad data register. this capability is used to extend the keypad interface beyond 4 x 4 keypads. when a key-press is detected by the tsc2301, it automatically scans the keypad and de-bounces the key-press. it then drives kbirq low. all keys pressed at the time of the scan are then reflected in the keypad data register. this mode is shown in figure 73 . keypad scan kbriq initiated figure 73. keypad scan initiated by keypress 65 issue interrupt kbirq start clock store keypad scan results in kpdata register keypad t ouch t urn off clock reset kbirq and scan t rigger done scan and debounce keys www .ti.com
audio codec tsc2301 slas371d ? september 2002 ? revised august 2004 audio analog i/o the tsc2301 has one pair of stereo inputs, llinein and rlinein, and one mono audio input, micin. the part also has one pair of stereo line outputs capable of driving a 10-k w load, voutl and voutr, as well as a stereo headphone output amplifier capable of driving a 16- w load at up to 30 mw/channel, hpl and hpr. finally, the part includes a differential mono output capable of driving a 10-k w load per side, mono+ and mono-. a special circuit has also been included for inserting a keyclick sound into the analog output signal path based on register control. this functionality is intended for generating keyclick sounds for user feedback. this function is controlled by reg 04h, pg 2, and is available when either of the dac or analog bypass paths are enabled. the common-mode voltage, vcm, used by the audio section can be powered up independently by the avpd bit (bit 14, reg 05h, pg 2). because the audio outputs are biased to this voltage, this voltage is slowly ramped up when powered on, and there is an internally programmed delay of approximately 500 ms between powering up this voltage and unmuting the analog audio signals of the tsc2301, in order to avoid pops and clicks on the outputs. it is recommended to keep vcm powered up if the 500-ms delay is not tolerable. audio digital i/o digital audio data samples can be transmitted between the tsc2301 and the cpu via the i 2 s bus (bclk, lrclk, i2sdin, i2sdout). however, all registers, including those pertaining to audio functionality, are only accessible via the spi bus. the i 2 s bus operates only in slave mode, meaning the bclk and lrclk must be provided as inputs to the part. four programmable modes for this serial bus are supported and can be set through the i2sfm bits (bits[1:0], reg 00h, pg 2) . pcm audio interface the 4-wire digital audio interface for tsc2301 is comprised of bclk (pin 24), lrclk (pin 25), i2sdin (pin 26), and i2sdout (pin 27). for the tsc2301, these formats are selected through the i2sfm bits in reg 00h, pg 2. the following figures illustrate audio data input/output formats and timing. the tsc2301 can accept 32-, 48-, or 64-bit clocks (bckin) in one clock of lrcin. only 16-bit data formats can be selected when 32-bit clocks/lrcin are applied. 66 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 figure 74. audio data input/output format 67 msb lch rch lch rch lsb lrcinbckin forma t 0 msb lsb dac: 16bit, msbfirst, rightjustified adc: 16bit, msbfirst, leftjustified 1 16 2 3 14 15 16 1 2 3 14 15 16 msb lsb lrcin bckin msb lsb 1 2 3 14 15 16 1 2 3 14 15 16 1 msb lch rch lch rch lsb lrcin bcin forma t 2 msb lsb dac: 20bit, msbfirst, leftjustified adc: 20bit, msbfirst, leftjustified 1 2 3 18 19 20 1 2 3 18 19 20 msb lsb lrcin bcin msb lsb 1 2 3 18 19 20 1 2 3 18 19 20 msb lch rch lch rch lsb lrcin bckin forma t 1 msb lsb dac: 20bit, msbfirst, rightjustified adc: 20bit, msbfirst, leftjustified 1 20 2 3 18 19 20 1 2 3 18 19 20 msb lsb lrcinbckin msb lsb 1 2 3 18 19 20 1 2 3 18 19 20 1 1 1 i 2 s d i n i 2 s d o u t i 2 s d i n i 2 s d o u t i 2 s d i n i 2 s d o u t www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 figure 75. audio data input/output format figure 76. audio data input/output timing table 29. audio data input/output timing parameter symbol min max bckin pulse cycle time t bcy 300 ns bckin pulse width high t bch 120 ns bckin pulse width low t bcl 120 ns bckin rising edge to lrcin edge t bl 40 ns lrcin edge to bckin rising edge t lb 40 ns lrcin pulse width t lrp t bcy ns i2sdin setup time t dis 40 ns i2sdin hold time t dih 40 ns i2sdout delay time to bckin falling edge t bdo 40 ns i2sdout delay time to lrcin edge t ldo 40 ns rising time to all signals t rise 20 ns 68 m s b l c h r c h l c h r c h l s b f o r m a t 3 m s b l s b d a c : 2 0 b i t , m s b f i r s t , i 2 s a d c : 2 0 b i t , m s b f i r s t , i 2 s 1 2 3 1 8 1 9 2 0 1 2 3 1 8 1 9 2 0 m s b l s b m s b l s b 1 2 3 1 8 1 9 2 0 1 2 3 1 8 1 9 2 0 i 2 s d i n bckin lrcin bckin lrcin i 2 s d o u t t bch t bcy t bcl t lb t dih t dis t lrp t bl t ldo t bdo 0.5v dd 0.5v dd 0.5v dd 0.5v dd i 2 s d i n i 2 s d o u t bckin lrcin www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 table 29. audio data input/output timing (continued) parameter symbol min max falling time to all signals t fall 20 ns 69 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 audio data converters the tsc2301 includes a stereo 20-bit audio dac and a stereo 20-bit audio adc. the dac and adc are both capable of operating at 8 khz, 11.025 khz, 12 khz, 16 khz, 22.05 khz, 24 khz, 32 khz, 44.1 khz, or 48 khz. the dac and adc must operate at the same sampling rate. when the adc or dac is operating, the part requires an audio mclk input, which should be synchronous to the i 2 s bus clock. the mclk can be 256/384/512 times the i 2 s lrclk rate. an internal pll takes any of these possible input clocks and generates a digital clock for use by the internal circuitry of either 44.1 khz x 512 = 22.5792 mhz (when 44.1 khz submultiple sample-rates are selected) or 48 khz x 512 = 24.576 mhz (when 48 khz submultiple sample-rates are selected). the user is required to set the mclk bits (bits[7:6], reg 00h, pg 2) to tell the part the ratio between mclk and the i 2 s lrclk rate (there is no specific phase alignment requirement between mclk and bclk). the user is also required to set the i2sfs bits (bits[5:2], reg 00h, pg 2) to tell the part what sample rate is in use. when the user is using either 44.1 khz or 48-khz sampling rates, and providing a 512 x fs mclk, the internal pll is powered down, as mclk can be used directly to clock the internal circuitry. this reduces power consumption. if the user wishes to change sampling rates, the data converters (both dacs and adcs) must be muted, then powered down. the lrclk and bclk rates must then be changed. next the user must write the appropriate settings to the mclk, i2sfs, and i2sfm bits, then power up the data converters. finally, the data converters can be unmuted. due to the wide supply range over which this part must operate, the audio does not operate on an internal reference voltage. the common-mode voltage that the single-ended audio signals are referenced to is set by a divider between the analog supplies and is given by 0.4 x avdd. the reference voltages used by the audio codec must be provided as inputs to the part at the vref+/vref- pins and are intended to be connected to the same voltage levels as avdd and agnd, respectively. because of this arrangement, the voltages applied to avdd, agnd, vref+, and vref- should be kept as clean and noise-free as possible. dac digital volume control the dac digital effects processing block implements a digital volume control that can be set through the spi registers. the volume level can be varied from 0 db to -63.5 db in 0.5-db steps independently for each channel. the user can mute each channel independently by setting the mute bits in the dac volume control register (reg 02h, pg 2). there is a soft-stepping algorithm included in this block, which only changes the actual volume every 20 s, either up or down, until the desired volume is reached. this speed of soft-stepping can be slowed to once every 40 s through the ssrte bit (bit 1, reg 04h, pg 2). because of this soft-stepping, the host does not know whether the dac has actually been fully muted or not. this may be important if the host wishes to mute the dac before making a significant change, such as changing sample rates. in order to help with this situation, the part provides a flag back to the host via a read-only spi register bit (bit 0, reg 04h, pg 2) that alerts the host when the part has completed the soft-stepping, and the actual volume has reached the desired volume level. the part also includes functionality to detect when the user switches on or off the de-emphasis or bass-boost functions, and to first soft-mute the dac volume control, then change the operation of the digital effects processing, then soft-unmute the part. this avoids any possible pop/clicks in the audio output due to instantaneous changes in the filtering. a similar algorithm is used when first powering up or down the dac/adc. the circuit begins operation at power-up with the volume control muted, then soft-steps it up to the desired volume level slowly. at power-down, the logic first soft-steps the volume down to a mute level, then powers down the circuitry. 70 www .ti.com
(13) tsc2301 slas371d ? september 2002 ? revised august 2004 stereo dac overview the stereo dac consists of a digital block to implement digital interpolation filter, volume control, de-emphasis filter and programmable digital effects/bass-boost filter for each channel. these are followed by a fifth-order single-bit digital delta-sigma modulator, and switched capacitor analog reconstruction filter. the dac has been designed to provide enhanced performance at low sample rates through increased oversampling and image filtering, thereby keeping quantization noise generated within the delta-sigma modulator and signal images strongly suppressed in the full audio band of 20 hz-20 khz, even at low sample rates such as 8 khz. this is realized by keeping the upsampled rate approximately constant and changing the oversampling ratio as the input sample rate is reduced. for rates of 8/12/16/24/32/48 khz, the digital delta-sigma modulator always operates at a rate of 6.144 mhz, giving oversampling ratios of 768/512/384/256/192/128, respectively. this ensures that quantization noise generated within the delta-sigma modulator stays low within the frequency band below 20 khz at all sample rates. similarly, for rates of 11.025/22.05/44.1 khz, the digital delta-sigma modulator always operates at a rate of 5.6448 mhz, yielding oversampling ratios of 512/256/128, respectively. conventional audio dac designs utilize high-order analog filtering to remove quantization noise that falls within the audio band when operating at low sample rates. here, however, the increased oversampling at low sample rates keeps the noise above 20 khz, yielding a similar noise floor out to 20 khz whether the sample rate is 8 khz or 48 khz. if the audio bypass path is not in use when the stereo dac is in use, the user should power down the bypass path, as this improves dac snr and reduces power consumption. in addition, the digital interpolation filter provides enhanced image filtering to reduce signal images caused by the upsampling process that land below 20 khz. for example, upsampling an 8-khz signal produces signal images at multiples of 8 khz, i.e., 8 khz, 16 khz, 24 khz, etc. the images at 8 khz and 16 khz are below 20 khz and thus are still audible to the listener, therefore they must be filtered heavily to maintain a good quality output. the interpolation filter is designed to maintain at least 65-db rejection of signal images landing between 0.55 fs and 3.5 fs, for all sample rates, including any images that land within the audio band (20 hz-20 khz). passband ripple for all sample-rate cases (from 20 hz to 0.4535 fs) is +/-0.1-db maximum. the analog reconstruction filter design consists of a switched-capacitor filter with one pole and three zeros. the single-bit data operates at 128 x 48 khz = 6.144 mhz (for selected sample-rates that are submultiples of 48 khz) or at 128 x 44.1 khz = 5.6448 mhz (for selected sample-rates that are submultiples of 44.1 khz). the interpolation filter takes data at the selected sample-rate from the effects processing block, then performs upsampling and image filtering, yielding a 6.144-mhz or 5.6448-mhz data stream, which is provided to the digital delta-sigma modulator. audio dac snr performance is 98-db-a typical over 20 hz?20 khz bandwidth in 44.1/48-khz mode at the line-outputs with a 3.3-v supply level. dac digital de-emphasis the dac digital effects processing block can perform several operations on the audio data before it is passed to the interpolation filter. one such operation is a digital de-emphasis, which can be enabled or disabled by the user via the deemp bit (bit 0, reg 05h, pg 2). this is only available for sample rates of 32 khz, 44.1 khz, and 48 khz. the transfer function consists of a pole with time constant of 50 s and a zero with time constant of 15 s. dac programmable digital effects filter the dac digital effects processing block also includes a fourth order digital iir filter with programmable coefficients (independently programmable per channel). the filter transfer function is given by: the n and d coefficients are set via spi registers, and this filter can be enabled or disabled via the bass bit (bit 1, reg 05h, pg 2). this functionality can implement a number of different functions, such as bass-boost (default), treble-boost, mid-boost, or other equalization. this transfer function(s) can be determined by the user and loaded to the tsc2301 at power-up, and the feature can then be switched on or off by the user during normal operation. if a filter with gain over 0 db is designed and used, and large-scale signals are played at high amplitude through the dac, overloading and undesirable effects can occur. the default coefficients at reset are given by: 71  n 0  2 n 1 z 1  n 2 z 2 3 2 7 6 8 2 d 1 z 1 d 2 z 2   n 3  2 n 4 z 1  n 5 z 2 3 2 7 6 8 2 d 4 z 1 d 5 z 2  www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 n0 = n3 = 27618 d1 = d4 = 32130 n1 = n4 = -27033 d2 = d5 = -31505 n2 = n5 = 26461 which implements the bass-boost transfer function shown in figure 77 , having a 3-db attenuation for signals above approximately 150 hz when operating at a 48-khz sampling rate. all coefficients are represented by 16-bit twos complement integers with values ranging from -32768 to 32767. figure 77. transfer function of default bass-boost filter coefficients at 48-khz sampling rate audio adc the audio adc consists of a 4th order multi-bit analog delta-sigma modulator, followed by a digital decimation filter. the digital output data is then passed to the bus interface for transmission back to the cpu. the analog modulator is a fully differential switched-capacitor design with multi-bit quantizer and dynamic element matching to avoid mismatch errors. the modulator operates at an oversampling ratio of 128 for all sample rates. the input to the adc is filtered by a single-pole analog filter with -3-db point at approximately 500 khz for antialiasing. this analog filter uses a single off-chip 1 nf cap per adc (at the afilt pins) and on-chip resistor. the digital decimation filter block includes a high-pass iir filter for the purpose of removing any dc or sub-audio-frequency component from the signal. since such a low frequency filter can have significant settling time, the filter has an adjustable cutoff frequency, in order to allow the host to set a faster settling time initially, then later switch it back to a level that does not affect the audio band. the settings for this high-pass filter are: hpf -3-db frequency: 0.000019 fs (0.912 hz at fs = 48 khz) 0.000078 fs (3.744 hz at fs = 48 khz) 0.1 fs (4.8 khz at fs = 48 khz) the filter block provides an audio passband ripple of +/-0.03 db over a passband from 0 hz to 0.454 sampling frequency (fs), and 70-db minimum stopband attenuation from 0.548 fs to 64 fs. 72 default bass-boost t ransfer function 48 khz mode 1 10 100 1000 10000 100000 frequency (hz) 0 0.5 1 1.5 2 2.5 3 3.5 gain (db) www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 the adc modulator and digital filter operate on a clock that changes directly with fs. this is in contrast to the dac, which keeps the modulator running at a high rate of 128 x 44.1 khz or 128 x 48 khz even if the incoming data rate is much lower, such as 8 khz. group delay of the adc path varies with sampling frequency and is given by 28.7/fs. audio adc snr performance is 88-db-a typical over 20-hz - 20-khz bandwidth in 44.1/48-khz mode with a 3.3-v supply level. each audio adc is preceded by an analog volume control with gain programmable from 20 db to -40 db or mute in 0.5-db steps using reg 01h, pg 2. the input to these volume controls are selected as llinein, rlinein, micin, or a mono mix of llinein and rlinein through the inml bits (bits [13:12], reg 00h, pg 2). an additional preamp gain is selectable on the micin input as 0 db, 6 db, or 12 db using the micg bits (bits [9:8], reg 00h, pg 2). audio bypass mode in audio bypass mode, the l/rlinein analog inputs can be routed to mix with the dac output and play to the line-outputs (voutl/r) as well as the headphone outputs (hpl/r) and mono output (mono+/-). this path has a stereo analog volume control associated with it, with range settings from 12.0 db to -35.5 db in 0.5-db steps. if the audio adcs and dacs are not used while the bypass path is in use, the adcs and dac must be powered down to improve noise performance and reduce power consumption. this analog volume control has soft-stepping logic associated with it, so that when a volume change is made via the spi bus, the logic changes the actual volume incrementally, single-stepping the actual volume up or down once every 20 sec until it reaches the desired volume level. this volume control also has similar algorithms as the adc/dac volume controls, in that the volume starts at mute upon power-up, then is slowly single-stepped up to the desired level. at a power-down request, the volume is slowly single-stepped down to mute before the circuit is actually powered down. differential monophonic output (mono+/-) the differential mono output of the tsc2301 can be used to drive a power amplifier which drives a low-impedance speaker. this block can output either a mono mix of the stereo line outputs, or the analog input to the left-channel adc. this is selected through the mons bit (bit 2, reg 04h, pg 2). the mono mix of the line outputs is represented by the equation voutl/2 + voutr/2. similarly, the mono mix of the analog line inputs is represented by llinein/2 + rlinein/2. microphone bias voltage (micbias) the tsc2301 provides an output voltage suitable for biasing an electret microphone capsule. this voltage is always 1 v below the supply voltage of the part. this output can be disabled through the mibpd bit (bit 6, reg 05h, pg 2) to reduce power consumption if not used. power consumption the tsc2301 provides maximum flexibility to the user for control of power consumption. towards that end, every section of the tsc2301 audio codec can be independently powered down. the power down status of the different sections is controlled by reg 05h in pg 2. the analog bypass path, headphone amplifier, mono output, stereo dac, left channel adc, right channel adc, microphone bias, crystal oscillator, and oscillator clock buffer sections can all be powered down independently. it is recommended that the end-user power down all unused sections whenever possible in order to minimize power consumption. below is a table showing power consumption in different modes of operation. 73 www .ti.com
tsc2301 audio control registers tsc2301 slas371d ? september 2002 ? revised august 2004 table 30. power consumption by mode of operation operating mode description register 05h bit values power consumption typ units 15 14 13 12 11 10 9 8 6 5 4 stereo record and playback mono record, line playback, 48 khz 0 0 1 1 1 0 0 1 1 0 0 45 mw mono record, line playback, 8 khz 0 0 1 1 1 0 0 1 1 0 0 38 mw stereo record, line playback, 48 khz 0 0 1 1 1 0 0 0 1 0 0 60 mw stereo record, line playback, 8 khz 0 0 1 1 1 0 0 0 1 0 0 48 mw stereo playback only line playback only, 48 khz 0 0 1 1 1 0 1 1 1 0 0 28 mw headphone playback only, 48 khz 0 0 1 0 1 0 1 1 1 0 0 34 mw record only stereo line record only, 48 khz 0 0 1 1 1 1 0 0 1 0 0 34 mw stereo line record only, 8 khz 0 0 1 1 1 1 0 0 1 0 0 26 mw mono record, 48 khz 0 0 1 1 1 1 0 1 1 0 0 19 mw mono record only, 8 khz 0 0 1 1 1 1 0 1 1 0 0 15 mw analog bypass line in to line out 0 0 0 1 1 1 1 1 1 0 0 10 mw line in to headphone out 0 0 0 0 1 1 1 1 1 0 0 13 mw power down power down all 1 1 x x x x x x x 0 0 0.5 w power down, vcm enabled 1 0 x x x x x x x 0 0 0.8 w tsc2301 audio control register (page 2, address 00h) the audio control register of the tsc2301 controls the digital audio interface, the microphone preamp gain, the record multiplexer settings, and the adc highpass filter pole. this register determines which adc high pass filter response is selected, as well as which audio inputs are connected to the stereo adcs. the gain of the mic input (0 to 12 db) is also selected. this register is also used to tell the data converters the frequency of mclk, along with the frequency of lrclk (adc and dac sample rates). the format of the audio data is also selected. the audio control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb hpf1 hpf0 inml1 inml0 inmr1 inmr0 micg micg mclk mclk i2sfs i2sfs i2sfs i2sfs i2sfm i2sfm0 1 0 1 0 3 2 1 0 1 bits [15:14] ? hpf1-hpf0 adc high pass filter. these two bits select the pass-band for the high-pass filter or disable the filter. the default state of the filter is enabled, with -3-db frequency at 0.000019xfs. table 31. high-pass filter operation hpf[1:0] hpf1 hpf0 description 0 0 hpf disabled, signal passes through unaltered 0 1 hpf -3-db frequency = 0.1xfs 1 0 hpf -3-db frequency = 0.000078xfs 1 1 hpf -3-db frequency = 0.000019xfs (default) 74 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bits [13:12] ? inml1-inml0 left audio adc input multiplexer. these two bits select the analog input for the left channel adc. the input to the left channel adc can come from the microphone input, right line input, left line input, or from a mono mix of the left and right line inputs. the default input to the left channel adc is the microphone input. table 32. left audio adc input selection inml[1:0] inml1 inml0 description 0 0 adcl input = mic (default) 0 1 adcl input = llinein 1 0 adcl input = rlinein 1 1 adcl input = (rlinein+llinein)/2 bits [11:10] ? inmr1-inmr0 right audio adc input multiplexer. these two bits select the analog input for the right channel adc. the input to the right channel adc can come from the microphone input, right line input, left line input, or from a mono mix of the left and right line inputs. the default input to the right channel adc is the microphone input. table 33. right audio adc input selection inmr[1:0] inmr1 inmr0 description 0 0 adcr input = mic (default) 0 1 adcr input = llinein 1 0 adcr input = rlinein 1 1 adcr input = (rlinein+llinein)/2 bits [9:8] ? micg1-micg0 microphone preamp gain. these two bits select the gain of the microphone input channel. the gain of the microphone input channel can be 0 db, 6 db, or 12 db. the default gain of the microphone input channel is 0 db. table 34. microphone input gain selection micg[1:0] micg1 micg0 description 0 0 mic gain = 0 db (default) 0 1 mic gain = 0 db 1 0 mic gain = 6 db 1 1 mic gain = 12 db 75 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bits [7:6] ? mclk1-mclk0 master clock ratio. these two bits select the ratio of the audio master clock frequency to the audio sampling frequency. the ratio can be 256 fs, 384 fs, or 512 fs. the default master clock frequency is 256 fs. table 35. master clock ratio selection mclk[1:0] mclk1 mclk0 description 0 0 master clock (mclk) = 256 x fs (default) 0 1 master clock (mclk) = 384 x fs 1 0 master clock (mclk) = 512 x fs 1 1 master clock (mclk) = 256 x fs bits [5:2] ? i2sfs3-i2sfs0 i 2 s sample rate. these bits tell the internal pll what the audio sampling rate is so that it provides the proper clock rate to the data converters and the digital filters. the default sample rate is 48 khz. see table 36 for a complete listing of available sampling rates. all combinations of i2sfs[3:0] not in table 36 are not valid. table 36. i 2 s sample rate select i2sfs3 i2sfs2 i2sfs1 i2sfs0 function 0 0 0 0 fs = 48 khz (default) 0 0 0 1 fs = 44.1 khz 0 0 1 0 fs = 32 khz 0 0 1 1 fs = 24 khz 0 1 0 0 fs = 22.05 khz 0 1 0 1 fs = 16 khz 0 1 1 0 fs = 12 khz 0 1 1 1 fs = 11.05 khz 1 0 0 0 fs = 8 khz bits [1:0] ? i2sfm1-i2sfm0 i 2 s format. these two bits select the i 2 s interface format. both 16-bit and 20-bit data formats are supported. the default format is 20-bit i 2 s. table 37. i 2 s format selection i2sfm [1:0] i2sfm1 i2sfm0 description 0 0 dac: 16-bit, msb-first, right justified adc: 16-bit, msb-first, left justified 0 1 dac: 20-bit, msb-first, right justified adc: 20-bit, msb-first, left justified 1 0 dac: 20-bit, msb-first, left justified adc: 20-bit, msb-first, left justified 1 1 dac: 20-bit, msb-first, i 2 s (default) adc: 20-bit, msb-first, i 2 s (default) adc volume control register (page 2, address 01h) the adc volume control register controls the independent programmable gain amplifiers (pga's) on the left and right channel inputs to the audio adcs of the tsc2301. the gain of these pgas can be adjusted from -40 db to 20 db in 0.5-db steps. the adc inputs can also be hard-muted, or internally shorted to vcm so that no input signal is seen. the adc volume control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb admu advl advl5 advl4 advl3 advl advl advl admu advr6 advr5 advr4 advr3 advr2 advr advr l 6 2 1 0 r 1 0 76 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bit 15 ? admul left adc mute. this bit is used to mute the input to the left channel adc volume control. the user can set this bit to mute the adc while retaining the previous gain setting in advl[6:0], so that the pga returns to the previous gain setting when admul is cleared. when the admul bit is set, the left adc pga soft-steps down to its lowest level, then mutes. this procedure is used to reduce any audible artifacts ( pops or clicks) during the mute operation. this soft-stepping process is reversed when the admul bit is cleared (unmute). table 38. left adc mute admul description 0 left channel adc is active. 1 left channel adc is mute. (default) bits [14:8] ? advl6- advl0 left adc volume control. these 7 bits control the gain setting of the left channel adc volume control. this volume control can be programmed from -40 db to 20 db in 0.5-db steps. full volume (+20 db) corresponds to a setting of 7fh. unity gain (0 db) corresponds to 57h. full attenuation (-40 db) corresponds to 07h. any value lower than 07h engages the mute function described above. volume control changes are always soft-stepped, as described above. the default volume setting is 0 db. advl[6:0] = 1010111 (087d) = 0 db (default) advl[6:0] = 1111111 (127d) = +20 db (max) advl[6:0] = 0000111 (007d) = -40 db (min) advl[6:0] = 0d-6d = mute bit 7 ? admur right adc mute. this bit is used to mute the input to the right channel adc. the user can set this bit to mute the adc while retaining the previous gain setting in advr[6:0], so that the pga returns to the previous gain setting when admur is cleared. when the admur bit is set, the right adc pga soft-steps down to its lowest level, then mutes. this procedure is used to reduce any audible artifacts ( pops or clicks) during the mute operation. this soft-stepping process is reversed when the admur bit is cleared (unmute). table 39. right adc mute admur description 0 right channel adc is active. 1 right channel adc is mute. (default) bits [6:0] ? advr6- advr0 right adc volume control. these 7 bits control the gain setting of the right channel adc volume control pga. this volume control can be programmed from -40 db to 20 db in 0.5-db steps. full volume (20 db) corresponds to a setting of 7fh. unity gain (0 db) corresponds to 57h. full attenuation (-40 db) corresponds to 07h. any value lower than 07h engages the mute function described above. volume control changes are always soft-stepped, as described above. the default volume setting is 0 db. advr[6:0] = 1010111 (087d) = 0 db (default) advr[6:0] = 1111111 (127d) = +20 db (max) advr[6:0] = 0000111 (007d) = -40 db (min) advr[6:0] = 0d-6d = mute dac volume control register (page 02, address 02h) the dac volume control register controls the independent digital gain controls on the left and right channel audio dac's of the tsc2301. the gain of the dacs can be adjusted from -63.5 db to 0 db in 0.5-db steps. the dac inputs can also be muted, so that all zeroes are sent to the dac interpolation filters. 77 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 the dac volume control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb damu davl davl5 davl4 davl3 davl davl davl damu davr6 davr5 davr4 davr3 davr2 davr davr l 6 2 1 0 r 1 0 bit 15 ? damul left dac mute. this bit is used to mute the input to the left channel dac. the user can set this bit to mute the dac while retaining the previous gain setting in davl[6:0], so that the gain control returns to the previous gain setting when damul is cleared. when the damul bit is set, the left dac digital gain control soft-steps down to its lowest level, then all zeroes are sent to the interpolation filter of this dac. this procedure is used to reduce any audible artifacts ( pops or clicks) of the mute procedure. this soft-stepping process is reversed when the damul bit is cleared (unmute). table 40. left dac mute damul description 0 left channel dac is active. 1 left channel dac is mute. (default) bits [14:8] ? davl6- davl0 left dac volume control. these 7 bits control the gain setting of the left channel dac volume control pga. this volume control can be programmed from -63.5 db to 0db in 0.5-db steps. full volume (0db) corresponds to a setting of 7fh. full attenuation (-63.5 db) corresponds to 00h. the default volume setting is 0 db. davl[6:0] = 1111111 (127d) = 0 db (default) davl[6:0] = 0000000 (000d) = -63.5 db (min) 1lsb = 0.5 db bit 7 ? damur right dac mute. this bit is used to mute the input to the right channel dac. the user can set this bit to mute the dac while retaining the previous gain setting in davr[6:0], so that the gain control returns to the previous gain setting when damur is cleared. when the damur bit is set, the left dac digital gain control soft-steps down to its lowest level, then all zeroes are sent to the interpolation filter of this dac. this procedure is used to reduce any audible artifacts ( pops or clicks) of the mute procedure. this soft-stepping process is reversed when the damur bit is cleared (unmute). table 41. right dac mute damur description 0 right channel dac is active. 1 right channel dac is mute. (default) bits [6:0] ? davr6- davr0 right dac volume control. these 7 bits control the gain setting of the right channel dac volume control. this volume control can be programmed from -63.5 db to 0 db in 0.5-db steps. full volume (0 db) corresponds to a setting of 7fh. full attenuation (-63.5 db) corresponds to 00h. the default volume setting is 0 db. davr[6:0] = 1111111 (127d) = 0 db (default) davr[6:0] = 0000000 (000d) = -63.5 db (min) 1lsb = 0.5 db 78 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 analog audio bypass path volume control register (page 02, address 03h) the bypass path volume control register controls the independent programmable gain amplifiers (pga's) on the left and right channel analog audio bypass paths of the tsc2301. these bypass paths direct the line inputs directly to the line and headphone outputs entirely in the analog domain, with no a/d or d/a conversion. this feature can be used for playback of an external analog source, such as an fm stereo tuner through the tsc2301's headphone amplifier. the gain of these pga's can be adjusted from -35.5 db to 12 db in 0.5 db steps. the bypass paths can also be muted, so that no signal is transmitted. the bypass path volume control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb bpmu bpvl bpvl5 bpvl4 bpvl3 bpvl bpvl bpvl bpmu bpvr6 bpvr5 bpvr4 bpvr3 bpvr2 bpvr bpvr l 6 2 1 0 r 1 0 bit 15 ? bpmul left channel audio bypass mute. this bit is used to mute the bypass path from the left channel line input (llinein) to the left channel line and headphone outputs (voutl and hpl). the user can set this bit to mute the bypass path while retaining the previous gain setting in bpvl[6:0], so that the pga returns to the previous gain setting when bpmul is cleared. when the bpmul bit is set, the pga soft-steps down to its lowest level, then the bypass path is muted. this procedure is used to reduce any audible artifacts ( pops or clicks) during the mute operation. this soft-stepping process is reversed when the bpmul bit is cleared (unmute). table 42. left channel audio bypass mute bpmul description 0 left channel audio bypass path is active. 1 left channel audio bypass path is mute. (default) bits [14:8] ? bpvl6- bpvl0 left channel audio bypass path volume control. these 7 bits control the gain setting of the left channel bypass path volume control pga. this volume control can be programmed from -35.5 db to 12 db in 0.5 db steps. full volume (+12 db) corresponds to a setting of 7fh. unity gain (0 db) corresponds to 67h. full attenuation (-35.5 db) corresponds to 20h. any value lower than 20h engages the mute function described above. the default volume setting is 0 db. bpvl[6:0] = 1100111 (103d) = 0 db (default) bpvl[6:0] = 1111111 (127d) = 12 db (max) bpvl[6:0] = 0100000 (032d) = -35.5 db (min) bpvl[6:0] = 0d-31d = mute bit 7 ? bpmur right channel audio bypass mute. this bit is used to mute the bypass path from the right channel line input (rlinein) to the right channel line and headphone outputs (voutr and hpr). the user can set this bit to mute the bypass path while retaining the previous gain setting in bpvr[6:0], so that the pga returns to the previous gain setting when bpmur is cleared. when the bpmur bit is set, the pga soft-steps down to its lowest level, then the bypass path is muted. this procedure is used to reduce any audible artifacts ( pops or clicks) during the mute operation. this soft-stepping process is reversed when the bpmur bit is cleared (unmute). table 43. right channel audio bypass mute bpmur description 0 right channel audio bypass path is active. 1 right channel audio bypass path is mute. (default) 79 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bits [6:0] ? bpvr6- bpvr0 right channel audio bypass path volume control. these 7 bits control the gain setting of the right channel bypass path volume control pga. this volume control can be programmed from -35.5 db to +12 db in 0.5-db steps. full volume (+12 db) corresponds to a setting of 7fh. unity gain (0 db) corresponds to 67h. full attenuation (-35.5 db) corresponds to 20h. any value lower than 20h engages the mute function described above. the default volume setting is 0 db. bpvr[6:0] = 1100111 (103d) = 0 db (default) bpvr[6:0] = 1111111 (127d) = +12 db (max) bpvr[6:0] = 0100000 (032d) = -35.5 db (min) bpvr[6:0] = 0d-31d = mute keyclick control register (page 2, address 04h) the keyclick control register of the tsc2301 controls the setup of the internal keyclick sound generator. this register is used to initiate and set the frequency, amplitude, and duration of the internally generated keyclick sound. this register also controls the input to the differential mono output, and the soft-stepping function of the tsc2301 volume controls. the keyclick control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb keyst kcam kca kcam resv kcfr kcfr kcfr kcln3 kcln2 kcln1 kcln0 resv mons ssrt sste 2 m1 0 2 1 0 e p bit 15 ? keyst keyclick start. this bit initiates a keyclick sound. table 44. keyclick start keyst description 0 no keyclick sound (default) 1 initiate a keyclick sound 80 www .ti.com
(14) tsc2301 slas371d ? september 2002 ? revised august 2004 bits [14:12] ? kcam2-kcam0 keyclick amplitude. these bits set the amplitude of the keyclick sound with eight amplitude levels provided. kcam[2:0] = 100 = medium amplitude (default) kcam[2:0] = 111 = maximum amplitude kcam[2:0] = 000 = minimum amplitude bit 11 ? reserved this bit is reserved, and should be written to 0. if read, it reads back as 0. bits [10:8] ? kcfr2-kcfr0 keyclick frequency. these bits set the frequency of the keyclick sound (frequencies are approximate). table 45. keyclick frequency kcfr2 kcfr1 kcfr0 keyclick tone frequency 0 0 0 62.5 hz 0 0 1 125 hz 0 1 0 250 hz 0 1 1 500 hz 1 0 0 1 k hz (default) 1 0 1 2 k hz 1 1 0 4 k hz 1 1 1 8 k hz bits [7:4] ? kcln3-kcln0 keyclick length. these bits set the approximate duration of the keyclick sound, 16 settings for duration are provided. the formula for the number of periods heard is: kcln[3:0] = 0000 = 2 periods of the keyclick sound (min) kcln[3:0] = 0001 = 4 periods of the keyclick sound (default) kcln[3:0] = 0010 = 6 periods of the keyclick sound kcln[3:0] = 0011 = 8 periods of the keyclick sound kcln[3:0] = 1111 = 32 periods of the keyclick sound (max) bit 3 ? reserved this bit is reserved, and should be written as 0. if read, it is read back as 0. bit 2 ? mons mono select. this bit determines the position of the mono multiplexer. this multiplexer allows either the left channel adc input or the mono mix of the stereo line outputs to be played out the differential mono output (mono+/-). table 46. mono select mons description 0 mono output comes from left adc input (default). 1 mono output comes from mono mix of line outputs. 81 n p e r i o d s  ( k c l n  1 )  2 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bit 1 ? ssrte volume soft-stepping rate select. this bit selects the speed of the soft-stepping function of the tsc2301 volume controls. at normal speed, the actual volume is updated approximately once every 20 s. at half speed, the actual volume is updated approximately once every 40 s. table 47. volume soft-stepping rate select ssrte description 0 normal step rate used (default). 1 half step rate used. bit 0 ? sstep soft-step flag. this read-only bit indicates that the tsc2301 volume control soft-stepping is completed. table 48. soft-step flag sstep description 0 soft-stepping is not complete. 1 soft-stepping is complete (default). audio power control register (page 2, address 05h) the audio power / miscellaneous control register of the tsc2301 controls the powering down of various audio blocks of the tsc2301. the default state of the tsc2301 has all audio blocks powered down. before using any of the audio blocks, they must be powered up by writing to this register. this register also controls the crystal oscillator clock and buffer, the bass-boost filter, and the de-emphasis filter. the audio power / miscellaneous control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb apd avpd abpd hapd mopd dapd adpd adpd pdsts mibpd osc bckc smpd otsy bass deem l r c n p for bits 15 through 8 of this register, writing a 1 to a selected bit powers down the affected section, writing a 0 powers up the section. bit 15 ? apd audio power down. this bit powers down the entire audio section if set, regardless of the settings of the other bits in this register. when this bit is cleared, the individual sections of the audio codec still need to be powered up individually. the settings of the other bits in the register are retained when this bit is set and cleared. the default is 1 (powered down). bit 14 ? avpd audio vcm power down. if this is set to 1, the vcm powers up whenever it is needed (such as when the audio adc, dac, or bypass path is enabled) and powers down when no longer needed. if this bit is set to 0, after an audio component is powered up and causes vcm to power up, it no longer powers down, even if all audio components are powered down. this is intended to avoid the 500 s delay needed for vcm to power up slowly. the default is 1 (powered down). bit 13 ? abpd audio bypass path power down. this is used to power up (set to 0) or power down (set to 1) the audio bypass path. the default is 1 (powered down). bits 12 ? hapd headphone amplifier power down. this is used to power up (set to 0) or power down (set to 1) the headphone amplifier. the default is 1 (powered down). 82 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bit 11 ? mopd mono driver power down. this is used to power up (set to 0) or power down (set to 1) the mono output driver. if only playback of the line or mic inputs through the mono output is needed, the user need only power up the mono section, and not the dac or adcs. the line inputs, mic preamp, left channel adc multiplexer and left channel volume control all power up if the mono output is powered up. the default is 1 (powered down). bit 10 ? dapd dac power down. this is used to power up (set to 0) or power down (set to 1) the entire stereo dac. the default is 1 (powered down). bit 9 ? adpdl left channel adc power down. this is used to power up (set to 0) or power down (set to 1) the entire left channel adc. the line inputs, mic preamp, left channel adc multiplexer and left channel volume control all automatically power up when the left channel adc is powered up. the default is 1 (powered down). bit 8 ? adpdr right channel adc power down. this is used to power up (set to 0) or power down (set to 1) the entire right channel adc. the line inputs, mic preamp, right channel adc multiplexer and right channel volume control all automatically power up when the right channel adc is powered up. the default is 1 (powered down). bit 7 ? pdsts power up/down done. this read-only bit indicates that all power-up or power-down processes requested are completed. table 49. power up/down flag pdsts description 0 power up/down is not complete. 1 power up/down is complete (default). bit 6 ? mibpd microphone bias power down. this is used to power up (set to 0) or power down (set to 1) the microphone bias output. table 50. microphone bias power down oscc description 0 microphone bias is on. 1 microphone bias is off (default). bit 5 ? oscc crystal oscillator control. this bit turns on/off the crystal oscillator. table 51. crystal oscillator control oscc description 0 crystal oscillator is off (default). 1 crystal oscillator is on. bit 4 ? bckc oscillator clock buffer control. this bit turns on/off the output clock buffer. 83 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 table 52. oscillator clock buffer control bckc description 0 the output clock buffer is off (default). 1 the output clock buffer is on. bit 3 ? smpd synchronization monitor power down. this bit turns on/off the i 2 s bus sync monitor. table 53. synchronization monitor power down smpd description 0 the i 2 s bus sync monitor is on (default). 1 the i 2 s bus sync monitor is off. bit 2 ? otsyn i 2 s out of sync. this read-only sticky bit reflects the sync status of the i 2 s bus. it always resets to zero after being read. table 54. i 2 s out of sync otsyn description 0 the i 2 s bus is in sync (default). 1 the i 2 s bus is out of sync. bit 1 ? bass digital-effects filter control. this bit turns on/off the digital-effects filter. if the digital-effects filter is off, the signal passes through with no filtering performed. table 55. digital-effects filter control bass description 0 the digital-effects filter is off (default). 1 the digital-effects filter is on. bit 0 ? deemp de-emphasis control. this bit turns on/off the de-emphasis function. table 56. de-emphasis control deemp description 0 de-emphasis is off (default). 1 de-emphasis is on. gpio control register (page 02, address 06h) the gpio control register controls the gpio pins of the tsc2301. the direction of each gpio pin can be set independently. for gpios configured as output pins, the data to be driven is written to this register. for gpio's configured as inputs, the input data can be read from this register. this register also contains a bit, sdavb which mirrors the state of the davb output line. the gpio control register is formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb resv resv io5 io 4 io 3 io 2 io 1 io 0 resv resv gpio5 gpio4 gpio3 gpio2 gpio gpio 1 0 84 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 bits 15,14 ? reserved these bits are reserved and should be written to 0. if read, they read back as 0. bits [13:8] ? io5- io0 gpio directional control. these 6 bits control the direction of the tsc2301s six gpio pins. when one of these bits is set to one, the corresponding gpio pin is configured as an output. when one of these bits is set to zero, the corresponding gpio pin is configured as an input. the default setting of these bits is zero (all inputs). bits 7,6 ? reserved these bits are reserved, and should be written to 0. if read, they read back as 0. bits [5:0] ? gpio5- gpio0 gpio data. these bits control the data on the gpio pins. when a gpio pin is configured as an output, the data written to one of these bits is driven on the corresponding gpio pin. when a gpio pin is configured as an input, the data input on the gpio pin is returned to the corresponding register bit, and can be read by the host processor. dac bass-boost filter coefficient registers (page 02, addresses 07h-1ah) the dac bass-boost coefficient registers implement the transfer function described. the coefficients are represented by 16-bit twos complement integers with values ranging from -32768 to 32767. the dac bass-boost coefficient registers are formatted as follows: bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 table 57. dac bass-boost coefficient registers address dac channel coefficient default 07h left n0 6be2 08h left n1 9667 09h left n2 675d 0ah left n3 6be2 0bh left n4 9667 0ch left n5 675d 0dh left d1 7d82 0eh left d2 84ef 0fh left d4 7d82 10h left d5 84ef 11h right n0 6be2 12h right n1 9667 13h right n2 675d 14h right n3 6be2 15h right n4 9667 16h right n5 675d 17h right d1 7d82 18h right d2 84ef 19h right d4 7d82 1ah right d5 84ef 85 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 audio clock configuration register (page 02, address 1bh) this register allows the user to use the output of the crystal oscillator as mclk, and receive the pll output on the penirq pin. bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 msb lsb x x x x x x x x x x x x plpn comk x x bits [15:4] ? reserved these bits are reserved, and should be written to 040h. if read, they read back as 040h. bits 3 ? plpn output pll on the penirq pin. this bit allows the user to receive the output of the audio codec internal pll. this bit is provided so the host processor can use the output of the pll, to generate its i 2 s signals in sync with an external mclk or crystal oscillator. writing a 1 to this bit connects the output of the pll to the penirq pin. otherwise, the penirq pin operates as normal. the user must take care in using this function, as penirq signals are overridden. table 58. output pll on penirq pin deemp description 0 penirq operates as normal (default). 1 output pll on penirq. bits 2 ? comk crystal oscillator as mclk. this bit allows the user to use the output of the internal crystal oscillator as the mclk for the audio codec. in this case, the mlck pin must be grounded. in this case, the output of the crystal oscillator replaces mclk in all functions. table 59. crystal oscillator as mclk deemp description 0 crystal oscillator and mclk operates as normal (default). 1 use crystal oscillator output as mclk. bits [1:0] ? reserved these bits are reserved, and must be written to 0. if read, they read back as 0. layout the following layout suggestions provide optimum performance from the tsc2301. however, many portable applications have conflicting requirements concerning power, cost, size, and weight. in general, most portable devices have fairly clean power and grounds because most of the internal components are very low power. this situation means less bypassing for the converter power and less concern regarding grounding. still, each situation is unique and the following suggestions should be reviewed carefully. for optimum performance, care must be taken with the physical layout of the tsc2301 circuitry. the basic sar architecture is sensitive to glitches or sudden changes on the power supply, reference, ground connections, and digital inputs that occur just prior to latching the output of the analog comparator. therefore, during any single conversion for an n-bit sar converter, there are n windows in which large external transient voltages can easily affect the conversion result. such glitches might originate from switching power supplies, nearby digital logic, and high power devices. the degree of error in the digital output depends on the reference voltage, layout, and the exact timing of the external event. the error can change if the external event changes in time with respect to the internal conversion clock. the touch screen circuitry, as well as the audio headphone amplifiers, uses the hpvdd/hpgnd supplies for its power, and any noise on this supply may adversely affect performance in these blocks. 86 www .ti.com
tsc2301 slas371d ? september 2002 ? revised august 2004 as described earlier, the audio common-mode voltage vcm is derived directly through an internal resistor divider between avdd and agnd. therefore, noise that couples onto avdd/agnd is translated onto vcm and can adversely impact audio performance. the reference pins for the audio data converters, vref+/vref-, should also be kept as clean and noise-free as possible, since noise here affects audio dac/adc quality. decoupling capacitors are recommended between vref+ and vref-, in addition to a series resistance between vref+ and the source of the voltage (such as connecting to the source providing avdd). with this in mind, power to the tsc2301 must be clean and well bypassed. a 0.1- f ceramic bypass capacitor should be placed as close to the device as possible on each supply pin to its respective ground pin. a 1 -f to 10- f capacitor may also be needed if the impedance of the connection between a supply and the power supply is high. a bypass capacitor on the sar vref pin may not be absolutely necessary because this reference is buffered by an internal op amp, but a 0.1uf bypass capacitor may reduce noise on this reference. if an external reference voltage originates from an op amp, make sure that it can drive any bypass capacitor that is used without oscillation. the tsc2301 sar converter architecture offers no inherent rejection of noise or voltage variation in regards to using an external reference input. this is of particular concern when the reference input is tied to the power supply. any noise and ripple from the supply appears directly in the digital results. while high frequency noise can be filtered out, voltage variation due to line frequency (50 hz or 60 hz) can be difficult to remove. the hpgnd pin must be connected to a clean ground point. in many cases, this is the analog ground for the sar converter. avoid connections which are too near the grounding point of a microcontroller or digital signal processor. if needed, run a ground trace directly from the converter to the power supply entry or battery connection point. the ideal layout includes an analog ground plane dedicated to the converter and associated analog circuitry. in the specific case of use with a resistive touch screen, care must be taken with the connection between the converter and the touch screen. since resistive touch screens have fairly low resistance, the interconnection should be as short and robust as possible. loose connections can be a source of error when the contact resistance changes with flexing or vibrations. as indicated previously, noise can be a major source of error in touch screen applications (e.g., applications that require a back-lit lcd panel). this emi noise can be coupled through the lcd panel to the touch screen and cause flickering of the converted data. several things can be done to reduce this error, such as utilizing a touch screen with a bottom-side metal layer connected to ground. this couples the majority of noise to ground. additionally, filtering capacitors, from y+, y-, x+, and x- to ground, can also help. note, however, that the use of these capacitors increases screen settling time and requires longer panel voltage stabilization times, as well as increased precharge and sense times for the touch screen control circuitry of the tsc2301. 87 www .ti.com
package option addendum www.ti.com 24-sep-2015 addendum-page 1 packaging information orderable device status (1) package type package drawing pins package qty eco plan (2) lead/ball finish (6) msl peak temp (3) op temp (c) device marking (4/5) samples tsc2301ipag active tqfp pag 64 160 green (rohs & no sb/br) cu nipdau level-4-260c-72 hr -40 to 85 tsc2301i TSC2301IPAGG4 active tqfp pag 64 160 green (rohs & no sb/br) cu nipdau level-4-260c-72 hr -40 to 85 tsc2301i tsc2301ipagr active tqfp pag 64 1500 green (rohs & no sb/br) cu nipdau level-4-260c-72 hr -40 to 85 tsc2301i (1) the marketing status values are defined as follows: active: product device recommended for new designs. lifebuy: ti has announced that the device will be discontinued, and a lifetime-buy period is in effect. nrnd: not recommended for new designs. device is in production to support existing customers, but ti does not recommend using this part in a new design. preview: device has been announced but is not in production. samples may or may not be available. obsolete: ti has discontinued the production of the device. (2) eco plan - the planned eco-friendly classification: pb-free (rohs), pb-free (rohs exempt), or green (rohs & no sb/br) - please check http://www.ti.com/productcontent for the latest availability information and additional product content details. tbd: the pb-free/green conversion plan has not been defined. pb-free (rohs): ti's terms "lead-free" or "pb-free" mean semiconductor products that are compatible with the current rohs requirements for all 6 substances, including the requirement that lead not exceed 0.1% by weight in homogeneous materials. where designed to be soldered at high temperatures, ti pb-free products are suitable for use in specified lead-free processes. pb-free (rohs exempt): this component has a rohs exemption for either 1) lead-based flip-chip solder bumps used between the die and package, or 2) lead-based die adhesive used between the die and leadframe. the component is otherwise considered pb-free (rohs compatible) as defined above. green (rohs & no sb/br): ti defines "green" to mean pb-free (rohs compatible), and free of bromine (br) and antimony (sb) based flame retardants (br or sb do not exceed 0.1% by weight in homogeneous material) (3) msl, peak temp. - the moisture sensitivity level rating according to the jedec industry standard classifications, and peak solder temperature. (4) there may be additional marking, which relates to the logo, the lot trace code information, or the environmental category on the device. (5) multiple device markings will be inside parentheses. only one device marking contained in parentheses and separated by a "~" will appear on a device. if a line is indented then it is a continuation of the previous line and the two combined represent the entire device marking for that device. (6) lead/ball finish - orderable devices may have multiple material finish options. finish options are separated by a vertical ruled line. lead/ball finish values may wrap to two lines if the finish value exceeds the maximum column width. important information and disclaimer: the information provided on this page represents ti's knowledge and belief as of the date that it is provided. ti bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. efforts are underway to better integrate information from third parties. ti has taken and
package option addendum www.ti.com 24-sep-2015 addendum-page 2 continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. ti and ti suppliers consider certain information to be proprietary, and thus cas numbers and other limited information may not be available for release. in no event shall ti's liability arising out of such information exceed the total purchase price of the ti part(s) at issue in this document sold by ti to customer on an annual basis.
tape and reel information *all dimensions are nominal device package type package drawing pins spq reel diameter (mm) reel width w1 (mm) a0 (mm) b0 (mm) k0 (mm) p1 (mm) w (mm) pin1 quadrant tsc2301ipagr tqfp pag 64 1500 330.0 24.4 13.0 13.0 1.5 16.0 24.0 q2 package materials information www.ti.com 2-sep-2015 pack materials-page 1
*all dimensions are nominal device package type package drawing pins spq length (mm) width (mm) height (mm) tsc2301ipagr tqfp pag 64 1500 367.0 367.0 45.0 package materials information www.ti.com 2-sep-2015 pack materials-page 2

mechanical data mtqf006a january 1995 revised december 1996 post office box 655303 ? dallas, texas 75265 pag (s-pqfp-g64) plastic quad flatpack 0,13 nom 0,25 0,45 0,75 seating plane 0,05 min 4040282 / c 11/96 gage plane 33 0,17 0,27 16 48 1 7,50 typ 49 64 sq 9,80 1,05 0,95 11,80 12,20 1,20 max 10,20 sq 17 32 0,08 0,50 m 0,08 0 7 notes: a. all linear dimensions are in millimeters. b. this drawing is subject to change without notice. c. falls within jedec ms-026
important notice texas instruments incorporated and its subsidiaries (ti) reserve the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per jesd46, latest issue, and to discontinue any product or service per jesd48, latest issue. buyers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. all semiconductor products (also referred to herein as ? components ? ) are sold subject to ti ? s terms and conditions of sale supplied at the time of order acknowledgment. ti warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in ti ? s terms and conditions of sale of semiconductor products. testing and other quality control techniques are used to the extent ti deems necessary to support this warranty. except where mandated by applicable law, testing of all parameters of each component is not necessarily performed. ti assumes no liability for applications assistance or the design of buyers ? products. buyers are responsible for their products and applications using ti components. to minimize the risks associated with buyers ? products and applications, buyers should provide adequate design and operating safeguards. ti does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right relating to any combination, machine, or process in which ti components or services are used. information published by ti regarding third-party products or services does not constitute a license to use such products or services or a warranty or endorsement thereof. use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from ti under the patents or other intellectual property of ti. reproduction of significant portions of ti information in ti data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. ti is not responsible or liable for such altered documentation. information of third parties may be subject to additional restrictions. resale of ti components or services with statements different from or beyond the parameters stated by ti for that component or service voids all express and any implied warranties for the associated ti component or service and is an unfair and deceptive business practice. ti is not responsible or liable for any such statements. buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements concerning its products, and any use of ti components in its applications, notwithstanding any applications-related information or support that may be provided by ti. buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause harm and take appropriate remedial actions. buyer will fully indemnify ti and its representatives against any damages arising out of the use of any ti components in safety-critical applications. in some cases, ti components may be promoted specifically to facilitate safety-related applications. with such components, ti ? s goal is to help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and requirements. nonetheless, such components are subject to these terms. no ti components are authorized for use in fda class iii (or similar life-critical medical equipment) unless authorized officers of the parties have executed a special agreement specifically governing such use. only those ti components which ti has specifically designated as military grade or ? enhanced plastic ? are designed and intended for use in military/aerospace applications or environments. buyer acknowledges and agrees that any military or aerospace use of ti components which have not been so designated is solely at the buyer ' s risk, and that buyer is solely responsible for compliance with all legal and regulatory requirements in connection with such use. ti has specifically designated certain components as meeting iso/ts16949 requirements, mainly for automotive use. in any case of use of non-designated products, ti will not be responsible for any failure to meet iso/ts16949. products applications audio www.ti.com/audio automotive and transportation www.ti.com/automotive amplifiers amplifier.ti.com communications and telecom www.ti.com/communications data converters dataconverter.ti.com computers and peripherals www.ti.com/computers dlp ? products www.dlp.com consumer electronics www.ti.com/consumer-apps dsp dsp.ti.com energy and lighting www.ti.com/energy clocks and timers www.ti.com/clocks industrial www.ti.com/industrial interface interface.ti.com medical www.ti.com/medical logic logic.ti.com security www.ti.com/security power mgmt power.ti.com space, avionics and defense www.ti.com/space-avionics-defense microcontrollers microcontroller.ti.com video and imaging www.ti.com/video rfid www.ti-rfid.com omap applications processors www.ti.com/omap ti e2e community e2e.ti.com wireless connectivity www.ti.com/wirelessconnectivity mailing address: texas instruments, post office box 655303, dallas, texas 75265 copyright ? 2015, texas instruments incorporated


▲Up To Search▲   

 
Price & Availability of TSC2301IPAGG4

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X